New miekg/dns to fix a resource leak (not affecting us)

This commit is contained in:
Frank Denis 2021-02-26 10:38:52 +01:00
parent 1ae2281588
commit 09866acdb5
30 changed files with 7929 additions and 41 deletions

View file

@ -321,6 +321,7 @@ func (srv *Server) ListenAndServe() error {
}
u := l.(*net.UDPConn)
if e := setUDPSocketOptions(u); e != nil {
u.Close()
return e
}
srv.PacketConn = l