fix: remove --send-ip, raw sockets bypass tunnel routing

This commit is contained in:
Pizza committed 2026-04-01 19:34:24 -06:00
1 parent 3d90fa67d7
commit 4eac4222cb
1 file changed
+2 -2
+2 -2
View File
@@ -100,7 +100,7 @@ def scan_lan(subnet: str) -> list[dict]:
try:
result = subprocess.run(
["nmap", "-sn", "-T5", "--min-parallelism", "100", "--max-parallelism", "256",
"--send-ip", "-oX", "-", subnet],
"-oX", "-", subnet],
capture_output=True, text=True, timeout=60
)
return _parse_nmap_xml(result.stdout)
@@ -120,7 +120,7 @@ def scan_lan_stream(subnet: str) -> Generator[dict, None, None]:
cmd = [
"nmap", "-sn", "-T5",
"--min-parallelism", "100", "--max-parallelism", "256",
"--send-ip", "-oX", "-", subnet
"-oX", "-", subnet
]
try:
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)