Commit fda89933 authored by Max Lv's avatar Max Lv

Disable DNS forwarding in GFWList/ChinaList mode

parent d8f721db
...@@ -344,7 +344,10 @@ class ShadowsocksVpnService extends VpnService with BaseService { ...@@ -344,7 +344,10 @@ class ShadowsocksVpnService extends VpnService with BaseService {
.setSession(profile.name) .setSession(profile.name)
.setMtu(VPN_MTU) .setMtu(VPN_MTU)
.addAddress(PRIVATE_VLAN.formatLocal(Locale.ENGLISH, "1"), 24) .addAddress(PRIVATE_VLAN.formatLocal(Locale.ENGLISH, "1"), 24)
.addDnsServer("8.8.8.8")
if (profile.route != Route.GFWLIST && profile.route != Route.CHINALIST) {
builder.addDnsServer("8.8.8.8")
}
if (profile.ipv6) { if (profile.ipv6) {
builder.addAddress(PRIVATE_VLAN6.formatLocal(Locale.ENGLISH, "1"), 126) builder.addAddress(PRIVATE_VLAN6.formatLocal(Locale.ENGLISH, "1"), 126)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment