From d04f6cf702ad74d4643a4e2dbd93b7162fc9c96c Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 30 Nov 2025 19:45:25 -0500 Subject: [PATCH] Dont throw errors on cleanup --- wgtester/wgtester.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wgtester/wgtester.go b/wgtester/wgtester.go index 0386a90..c76db64 100644 --- a/wgtester/wgtester.go +++ b/wgtester/wgtester.go @@ -3,6 +3,7 @@ package wgtester import ( "encoding/binary" "fmt" + "io" "net" "sync" "time" @@ -187,6 +188,10 @@ func (s *Server) handleConnections() { case <-s.shutdownCh: return // Don't log error if we're shutting down default: + // Don't log EOF errors during shutdown - these are expected when connection is closed + if err == io.EOF { + return + } logger.Error("%sError reading from UDP: %v", s.outputPrefix, err) } continue