Fix: DNS server not recreate correctly (#186)

This commit is contained in:
gVisor bot 2019-05-18 17:52:42 +08:00
parent 46e5342b79
commit 0a6f9b3878

View File

@ -97,6 +97,7 @@ func ReCreateServer(addr string, resolver *Resolver) error {
if server.Server != nil {
server.Shutdown()
address = ""
}
_, port, err := net.SplitHostPort(addr)