summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/server6/server_test.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2019-04-29 13:52:22 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2019-04-29 15:44:25 +0100
commit03e9ac918544b248cd2d660195934d7c943cb4d7 (patch)
treea9b43d893419db1d567934dc56f23b2eaaf16e0d /dhcpv6/server6/server_test.go
parent5c6ea15a40cc06ac0af833fa3ef883de3f32037b (diff)
[server6] Server should join multicast address
The previous logic was wrong - there's no "listening" on multicast address, the server should listen on the given address, and join the multicast group. This PR fixes it. Also moved the multicast addresses to a common package. Tested with unit/integ tests, and with coredhcp. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv6/server6/server_test.go')
-rw-r--r--dhcpv6/server6/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/server6/server_test.go b/dhcpv6/server6/server_test.go
index 3b204f1..c81525a 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(laddr, handler)
+ s, err := NewServer("lo", laddr, handler)
if err != nil {
panic(err)
}