mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix: fakedns cannot work
This commit is contained in:
1 parent
c0f79ae4df
commit
5fe484eff4
3 files changed
+9
-6
No files matched your search
@@ -41,7 +41,8 @@ iptables -w 2 -t nat -A V2RAY -d 192.0.0.0/24 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 192.0.2.0/24 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 192.88.99.0/24 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 192.168.0.0/16 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 198.18.0.0/15 -j RETURN
|
||||
# fakedns
|
||||
# iptables -w 2 -t nat -A V2RAY -d 198.18.0.0/15 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 198.51.100.0/24 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 203.0.113.0/24 -j RETURN
|
||||
iptables -w 2 -t nat -A V2RAY -d 224.0.0.0/4 -j RETURN
|
||||
@@ -63,7 +64,8 @@ ip6tables -w 2 -t nat -A V2RAY -d 2001::/32 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d 2001:20::/28 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d 2001:db8::/32 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d 2002::/16 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d fc00::/7 -j RETURN
|
||||
# fakedns
|
||||
# ip6tables -w 2 -t nat -A V2RAY -d fc00::/7 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d fe80::/10 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -d ff00::/8 -j RETURN
|
||||
ip6tables -w 2 -t nat -A V2RAY -m mark --mark 0x80/0x80 -j RETURN
|
||||
|
||||
@@ -86,7 +86,8 @@ iptables -w 2 -t mangle -A TP_RULE -d 192.0.0.0/24 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 192.0.2.0/24 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 192.88.99.0/24 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 192.168.0.0/16 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 198.18.0.0/15 -j RETURN
|
||||
# fakedns
|
||||
# iptables -w 2 -t mangle -A TP_RULE -d 198.18.0.0/15 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 198.51.100.0/24 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 203.0.113.0/24 -j RETURN
|
||||
iptables -w 2 -t mangle -A TP_RULE -d 224.0.0.0/4 -j RETURN
|
||||
|
||||
@@ -328,7 +328,7 @@ func (t *Template) setDNS(outbounds []serverInfo, supportUDP map[string]bool) (r
|
||||
}
|
||||
|
||||
// fakedns
|
||||
if t.FakeDns != nil {
|
||||
if specialMode.ShouldUseFakeDns() {
|
||||
ds := coreObj.DnsServer{
|
||||
Address: "fakedns",
|
||||
Domains: []string{
|
||||
@@ -967,14 +967,14 @@ func (t *Template) setDualStack() {
|
||||
}
|
||||
}
|
||||
func (t *Template) setInboundFakeDnsDestOverride() {
|
||||
if t.FakeDns == nil {
|
||||
if !specialMode.ShouldUseFakeDns() {
|
||||
return
|
||||
}
|
||||
for i := range t.Inbounds {
|
||||
if t.Inbounds[i].Sniffing.Enabled == false {
|
||||
continue
|
||||
}
|
||||
t.Inbounds[i].Sniffing.DestOverride = append(t.Inbounds[i].Sniffing.DestOverride, "fakedns")
|
||||
t.Inbounds[i].Sniffing.DestOverride = []string{"fakedns"}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user