Browse Source

Fix: routing rule not applied for TCP DNS (#1144)

朱聖黎 4 years ago
parent
commit
8fed55f69f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/dns/nameserver_tcp.go

+ 1 - 1
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,