Fix default local DNS server behavior

This commit is contained in:
世界 2022-11-09 10:35:16 +08:00
parent 7358ca4a52
commit 972491c19d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -234,7 +234,7 @@ func NewRouter(ctx context.Context, logger log.ContextLogger, dnsLogger log.Cont
}
if defaultTransport == nil {
if len(transports) == 0 {
transports = append(transports, dns.NewLocalTransport(dialer.NewRouter(router)))
transports = append(transports, dns.NewLocalTransport(N.SystemDialer))
}
defaultTransport = transports[0]
}