Commit untested Windows code

TODO: get access to a Windows machine / VM and test

Signed-off-by: Harry Harpham <harry@tailscale.com>
This commit is contained in:
Harry Harpham
2025-11-20 16:23:19 -07:00
parent 1990772a71
commit c47cdce150

View File

@@ -58,6 +58,12 @@ func controlC(logf logger.Logf, network, address string, c syscall.RawConn) (err
return nil
}
// Unix sockets cannot be bound to an interface.
// TODO: is this Unix socket exception necessary on Windows? presumably...
if network == "unix" {
return nil
}
canV4, canV6 := false, false
switch network {
case "tcp", "udp":