Commit untested Windows code

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

Signed-off-by: Harry Harpham <[email protected]>
This commit is contained in:
Harry Harpham committed 2025-12-02 08:59:55 -07:00
1 parent de3f0fd14f
commit dcf80435a4
1 file changed
+6
+6
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":