Fix: DNS server not recreate correctly (#186)

This commit is contained in:
Fndroid 2019-05-18 17:52:42 +08:00 committed by Dreamacro
parent a4b8e286db
commit 89168e6c96

View File

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