You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep Windows --dev usable by resolving the selected device to a source IP and clearing SourceDevice before the tracer reaches Windows send paths. Update docs and project notes to describe that Windows routing may still choose the actual egress interface.
#### `NextTrace` already supports route tracing for specified Network Devices
334
334
335
335
On macOS and Linux, `--dev` binds the requested source interface.
336
-
On Windows, `--dev` only selects the source address and does not guarantee the actual egress interface.
337
-
`TCP + --dev` remains explicitly unsupported on Windows and returns an error.
336
+
On Windows, `--dev` resolves the source IP from the selected device and uses that source address for ICMP/TCP/UDP probes; it does not bind WinDivert or sockets to a real egress interface, so Windows routing may still choose a different path. The standalone `--mtu` mode follows the same source-address behavior and also uses the device name for local MTU lookup.
Copy file name to clipboardExpand all lines: cmd/cmd.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1092,7 +1092,7 @@ func Execute() {
1092
1092
naliMode:=registerNaliFlag(parser)
1093
1093
srcAddr:=parser.String("s", "source", &argparse.Options{Help: "Use source address src_addr for outgoing packets"})
1094
1094
srcPort:=parser.Int("", "source-port", &argparse.Options{Help: "Use source port src_port for outgoing packets"})
1095
-
srcDev:=parser.String("D", "dev", &argparse.Options{Help: "Use the specified network device for explicit source selection. On Windows, this only chooses the source address and does not guarantee the egress interface; TCP + --dev is not supported"})
1095
+
srcDev:=parser.String("D", "dev", &argparse.Options{Help: "Use the specified network device for explicit source selection. On Windows, this selects the device source address; routing may still choose the egress interface"})
1096
1096
1097
1097
webFlags:=registerWebUIFlags(parser)
1098
1098
deployListen:=webFlags.deployListen
@@ -1298,7 +1298,7 @@ func Execute() {
1298
1298
fmt.Println(srcResolveErr)
1299
1299
os.Exit(1)
1300
1300
}
1301
-
// NormalizeExplicitSourceConfig enforces explicit --source/--dev rules and unsupported combinations.
0 commit comments