From aa1ef8786b7c8dbb3566a17264936ee207e9d80d Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 11 Nov 2023 07:59:25 -0500 Subject: [PATCH] fix: cut/paste error with reuseaddr This commit is part of the upstream PR just opened --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 61d8b56825..34c4e91c2a 100644 --- a/server.go +++ b/server.go @@ -344,7 +344,7 @@ func (srv *Server) ListenAndServe() error { unlock() return srv.serveTCP(l) case "udp", "udp4", "udp6": - l, err := listenUDP(srv.Net, addr, srv.ReusePort, srv.ReusePort) + l, err := listenUDP(srv.Net, addr, srv.ReusePort, srv.ReuseAddr) if err != nil { return err }