Fix(dns): set handler when resolver not nil

This commit is contained in:
gVisor bot 2019-07-15 10:18:42 +08:00
parent a446a24be9
commit d839973334

View File

@ -32,7 +32,7 @@ func (s *Server) setHandler(handler handler) {
}
func ReCreateServer(addr string, resolver *Resolver) error {
if addr == address {
if addr == address && resolver != nil {
handler := newHandler(resolver)
server.setHandler(handler)
return nil