From 070c378dfd930a178b530acde07642c3933c68a9 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 28 Oct 2020 15:15:35 -0400 Subject: [PATCH] apparently the normal check doesn't work --- peer/http3/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer/http3/server.go b/peer/http3/server.go index d0a39e1..55ab5fc 100644 --- a/peer/http3/server.go +++ b/peer/http3/server.go @@ -164,7 +164,7 @@ func generateTLSConfig() *tls.Config { func (s *Server) listenAndServe(server *http3.Server) { err := server.ListenAndServe() - if err != nil && !errors.Is(err, http.ErrServerClosed) { + if err != nil && err.Error() != "server closed" { log.Errorln(errors.FullTrace(err)) } }