2fcdaf9799
If RIO is unavailable, NewWinRingBind() falls back to StdNetBind. StdNetBind uses x/net/ipv{4,6}.PacketConn for sending and receiving datagrams, specifically via the {Read,Write}Batch methods. These methods are unimplemented on Windows and will return runtime errors as a result. Additionally, only Linux benefits from these x/net types for reading and writing, so we update StdNetBind to fall back to the standard library net package for all platforms other than Linux. Reviewed-by: James Tucker <james@tailscale.com> Signed-off-by: Jordan Whited <jordan@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> |
||
---|---|---|
.. | ||
bindtest | ||
winrio | ||
bind_std_test.go | ||
bind_std.go | ||
bind_windows.go | ||
boundif_android.go | ||
conn_test.go | ||
conn.go | ||
controlfns_linux.go | ||
controlfns_unix.go | ||
controlfns_windows.go | ||
controlfns.go | ||
default.go | ||
mark_default.go | ||
mark_unix.go | ||
sticky_default.go | ||
sticky_linux_test.go | ||
sticky_linux.go |