diff options
-rw-r--r-- | dhcpv4/server4/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/server4/server.go b/dhcpv4/server4/server.go index 8bf7924..9c1cee2 100644 --- a/dhcpv4/server4/server.go +++ b/dhcpv4/server4/server.go @@ -97,7 +97,7 @@ func (s *Server) Serve() error { continue } // Set peer to broadcast if the client did not have an IP. - if upeer.IP == nil || upeer.IP.Equal(net.IPv4zero) { + if upeer.IP == nil || upeer.IP.To4().Equal(net.IPv4zero) { upeer = &net.UDPAddr{ IP: net.IPv4bcast, Port: upeer.Port, |