diff options
author | Anatole Denis <natolumin@unverle.fr> | 2019-09-17 16:02:29 +0200 |
---|---|---|
committer | Anatole Denis <natolumin@unverle.fr> | 2019-09-18 11:13:40 +0200 |
commit | a8311dfaca587339aa1d905598ac0f2093ad7ea9 (patch) | |
tree | 3f1bf71af187d4a4f12042d44cb4514fae4a3d1c /dhcpv6/server6/server_test.go | |
parent | eac77666371b0272d980e9ea739cc890957971a9 (diff) |
server6: Create UDP conn manually for more control
Similar to server4 where the UDP connection is manually created using
the socket interfaces, this creates a connection with adequate options:
* SO_BINDTODEVICE or equivalent if an interface is requested
* V6ONLY when supported by the operating system
* Allows binding to a multicast address specifically instead of
falling back to wildcard
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'dhcpv6/server6/server_test.go')
-rw-r--r-- | dhcpv6/server6/server_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/server6/server_test.go b/dhcpv6/server6/server_test.go index cf5fbea..09cde4c 100644 --- a/dhcpv6/server6/server_test.go +++ b/dhcpv6/server6/server_test.go @@ -33,7 +33,7 @@ func setUpClientAndServer(handler Handler) (*nclient6.Client, *Server) { IP: net.ParseIP("::1"), Port: 0, } - s, err := NewServer("lo", laddr, handler) + s, err := NewServer("", laddr, handler) if err != nil { panic(err) } |