Skip to content

Commit

Permalink
Fix: routing rule not applied for TCP DNS (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
digglife committed Jul 16, 2021
1 parent 6129f2b commit 8fed55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dns/nameserver_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8fed55f

Please sign in to comment.