diff --git a/server/http3/server.go b/server/http3/server.go index 59e85e1..e85c9ad 100644 --- a/server/http3/server.go +++ b/server/http3/server.go @@ -155,7 +155,7 @@ func generateTLSConfig() *tls.Config { func (s *Server) listenAndServe(server *http3.Server) { err := server.ListenAndServe() - if err != nil && err.Error() != "server closed" { + if err != nil && err != quic.ErrServerClosed { log.Errorln(errors.FullTrace(err)) } }