Skip to content

Commit

Permalink
Merge pull request #2 from jefferai/jimlambrt-fix-cp-paste-with-reuse…
Browse files Browse the repository at this point in the history
…addr

fix: cut/paste error with reuseaddr
  • Loading branch information
jefferai authored Nov 13, 2023
2 parents 490e4ef + aa1ef87 commit 9d11e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9d11e97

Please sign in to comment.