summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dhcpv6/server6/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/server6/server.go b/dhcpv6/server6/server.go
index ac25076..1f4d8a0 100644
--- a/dhcpv6/server6/server.go
+++ b/dhcpv6/server6/server.go
@@ -164,7 +164,7 @@ func NewServer(ifname string, addr *net.UDPAddr, handler Handler, opt ...ServerO
if err := p.JoinGroup(iface, addr); err != nil {
return nil, err
}
- } else if addr.IP.IsUnspecified() && addr.Port == dhcpv6.DefaultServerPort {
+ } else if (addr.IP == nil || addr.IP.IsUnspecified()) && addr.Port == dhcpv6.DefaultServerPort {
// For wildcard addresses on the correct port, listen on both multicast
// addresses defined in the RFC as a "default" behaviour
for _, g := range []net.IP{dhcpv6.AllDHCPRelayAgentsAndServers, dhcpv6.AllDHCPServers} {