From 972491c19d6f950159620e590cc06f310e608f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 9 Nov 2022 10:35:16 +0800 Subject: [PATCH] Fix default local DNS server behavior --- route/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/router.go b/route/router.go index 4487d26f..a283f4e5 100644 --- a/route/router.go +++ b/route/router.go @@ -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] }