From 8fed55f69f008ea1cdae3553087f28105d921b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=81=96=E9=BB=8E?= Date: Fri, 16 Jul 2021 15:13:58 +0800 Subject: [PATCH] Fix: routing rule not applied for TCP DNS (#1144) --- app/dns/nameserver_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dns/nameserver_tcp.go b/app/dns/nameserver_tcp.go index 14c716117..f3987afdd 100644 --- a/app/dns/nameserver_tcp.go +++ b/app/dns/nameserver_tcp.go @@ -82,7 +82,7 @@ func baseTCPNameServer(url *url.URL, prefix string) (*TCPNameServer, error) { return nil, err } } - dest := net.TCPDestination(net.DomainAddress(url.Hostname()), port) + dest := net.TCPDestination(net.ParseAddress(url.Hostname()), port) s := &TCPNameServer{ destination: dest,