Skip to content

Commit 20da61d

Browse files
committed
bump vpnguin to support pcap;change external pcap filename to boolean
1 parent 5482ec5 commit 20da61d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG LINUX_VERSION="2.4.26"
77
ARG LIBNVRAM_VERSION="0.0.16"
88
ARG CONSOLE_VERSION="1.0.5"
99
ARG PENGUIN_PLUGINS_VERSION="1.5.15"
10-
ARG VPN_VERSION="1.0.20"
10+
ARG VPN_VERSION="1.0.23"
1111
ARG HYPERFS_VERSION="0.0.38"
1212
ARG GUESTHOPPER_VERSION="1.0.15"
1313
ARG GLOW_VERSION="1.5.1"

docs/schema_doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,9 +1175,9 @@ MAC Address for external network interface
11751175

11761176
|||
11771177
|-|-|
1178-
|__Type__|string or null|
1178+
|__Type__|boolean or null|
11791179
|__Default__|`null`|
11801180

1181-
Name of pcap file for capturing traffic over external net. Capture disabled if unset.
1181+
Whether to capture traffic over the external net in a pcap file. The file will be called 'ext.pcap' in the output directory. Capture disabled if unset.
11821182

11831183

src/penguin/penguin_config/structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,10 +780,10 @@ class ExternalNetwork(BaseModel):
780780
# description="Net for external interface (e.g., 10.0.2.0/24). Host will accessible via .2"
781781
# )
782782

783-
pcap: Optional[str] = Field(
783+
pcap: Optional[bool] = Field(
784784
title="pcap file name",
785785
default=None,
786-
description="Name of pcap file for capturing traffic over external net. Capture disabled if unset."
786+
description="Whether to capture traffic over the external net in a pcap file. The file will be called 'ext.pcap' in the output directory. Capture disabled if unset."
787787
)
788788

789789

src/penguin/penguin_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ def run_config(
389389
# Supported in future versions of QEMU
390390
# if net := network["external"].get("net", None):
391391
# arg_str += ",net={net}"
392-
if pcap := network["external"].get("pcap", None):
393-
pcap_path = os.path.join(out_dir, pcap)
392+
if network["external"].get("pcap"):
393+
pcap_path = os.path.join(out_dir, "ext.pcap")
394394
arg_str += f" -object filter-dump,id=fext,netdev=ext,file={pcap_path}"
395395
args += shlex.split(arg_str)
396396
conf["env"]["IGLOO_EXT_MAC"] = mac

0 commit comments

Comments
 (0)