1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

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

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,