Skip to content

Commit

Permalink
fix: routing rule not applied when using tcp: schema for DNS Server
Browse files Browse the repository at this point in the history
fixed: #1143
  • Loading branch information
digglife committed Jul 15, 2021
1 parent 9b83bb1 commit 04a0bb9
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 04a0bb9

Please sign in to comment.