mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
10533c3e73
Instead of hard-coding exactly two sources from which to receive packets (an IPv4 source and an IPv6 source), allow the conn.Bind to specify a set of sources. Beneficial consequences: * If there's no IPv6 support on a system, conn.Bind.Open can choose not to return a receive function for it, which is simpler than tracking that state in the bind. This simplification removes existing data races from both conn.StdNetBind and bindtest.ChannelBind. * If there are more than two sources on a system, the conn.Bind no longer needs to add a separate muxing layer. Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com> |
||
---|---|---|
.. | ||
bindtest | ||
winrio | ||
bind_linux.go | ||
bind_std.go | ||
bind_windows.go | ||
boundif_android.go | ||
conn.go | ||
default.go | ||
mark_default.go | ||
mark_unix.go |