1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 07:25:19 -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

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,