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

This commit is contained in:
朱聖黎 2021-07-16 15:13:58 +08:00 committed by GitHub
parent 6129f2b5b3
commit 8fed55f69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,