Explorar o código

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

朱聖黎 %!s(int64=4) %!d(string=hai) anos
pai
achega
8fed55f69f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,