Переглянути джерело

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

朱聖黎 4 роки тому
батько
коміт
8fed55f69f
1 змінених файлів з 1 додано та 1 видалено
  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,