mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix(dns): set handler when resolver not nil
This commit is contained in:
parent
a446a24be9
commit
d839973334
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user