diff options
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/server.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dhcpv4/server.go b/dhcpv4/server.go index 7db4abe..130ef54 100644 --- a/dhcpv4/server.go +++ b/dhcpv4/server.go @@ -115,7 +115,10 @@ func (s *Server) ActivateAndServe() error { if err != nil { switch err.(type) { case net.Error: - // silently skip and continue + if err.(net.Error).Timeout() { + return err + } + // if timeout, silently skip and continue default: // complain and continue log.Printf("Error reading from packet conn: %v", err) |