mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix: wrong dns splitting
This commit is contained in:
1 parent
37461ad5ea
commit
aa135b389a
1 file changed
+1
-1
@@ -679,7 +679,7 @@ func (t *Template) SetDNS(vs []vmessInfo.VmessInfo, setting *configure.Setting,
|
||||
// we believe all lines are legal
|
||||
var addr = parseDnsAddr(dns.Val)
|
||||
|
||||
if net.ParseIP(addr.host) == nil {
|
||||
if net.ParseIP(addr.host) != nil {
|
||||
routing = append(routing, RoutingRule{
|
||||
Type: "field", InboundTag: []string{"dns"}, OutboundTag: dns.Out, IP: []string{addr.host}, Port: addr.port,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user