Skip to content

Commit 8fed55f

Browse files
authored
Fix: routing rule not applied for TCP DNS (#1144)
1 parent 6129f2b commit 8fed55f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/dns/nameserver_tcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func baseTCPNameServer(url *url.URL, prefix string) (*TCPNameServer, error) {
8282
return nil, err
8383
}
8484
}
85-
dest := net.TCPDestination(net.DomainAddress(url.Hostname()), port)
85+
dest := net.TCPDestination(net.ParseAddress(url.Hostname()), port)
8686

8787
s := &TCPNameServer{
8888
destination: dest,

0 commit comments

Comments
 (0)