diff options
Diffstat (limited to 'vendor/github.com/miekg')
-rw-r--r-- | vendor/github.com/miekg/dns/README.md | 2 | ||||
-rw-r--r-- | vendor/github.com/miekg/dns/server.go | 13 | ||||
-rw-r--r-- | vendor/github.com/miekg/dns/version.go | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/vendor/github.com/miekg/dns/README.md b/vendor/github.com/miekg/dns/README.md index e6dbad25d..1ad23c751 100644 --- a/vendor/github.com/miekg/dns/README.md +++ b/vendor/github.com/miekg/dns/README.md @@ -62,6 +62,8 @@ A not-so-up-to-date-list-that-may-be-actually-current: * https://dnssectest.net/ * https://dns.apebits.com * https://github.com/oif/apex +* https://github.com/jedisct1/dnscrypt-proxy +* https://github.com/jedisct1/rpdns Send pull request if you want to be listed here. diff --git a/vendor/github.com/miekg/dns/server.go b/vendor/github.com/miekg/dns/server.go index b6ce5b5f6..685753f43 100644 --- a/vendor/github.com/miekg/dns/server.go +++ b/vendor/github.com/miekg/dns/server.go @@ -472,11 +472,14 @@ func (srv *Server) serveTCP(l net.Listener) error { } return err } - m, err := reader.ReadTCP(rw, rtimeout) - if err != nil { - continue - } - go srv.serve(rw.RemoteAddr(), handler, m, nil, nil, rw) + go func() { + m, err := reader.ReadTCP(rw, rtimeout) + if err != nil { + rw.Close() + return + } + srv.serve(rw.RemoteAddr(), handler, m, nil, nil, rw) + }() } } diff --git a/vendor/github.com/miekg/dns/version.go b/vendor/github.com/miekg/dns/version.go index 0e23cc3e1..e41d2b3ca 100644 --- a/vendor/github.com/miekg/dns/version.go +++ b/vendor/github.com/miekg/dns/version.go @@ -3,7 +3,7 @@ package dns import "fmt" // Version is current version of this library. -var Version = V{1, 0, 3} +var Version = V{1, 0, 4} // V holds the version of this library. type V struct { |