diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index bb2a31d4..fb1ac63c 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -1477,6 +1477,12 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon Intent intent = new Intent(TorService.this, OrbotVpnService.class); intent.setAction("refresh"); startService(intent); + + updateConfiguration("DNSListenAddress","10.0.0.1:" + TorServiceConstants.TOR_DNS_PORT_DEFAULT,false); + updateConfiguration("DisableNetwork","0", false); + + saveConfiguration(); + // conn.setConf("DisableNetwork", "0"); } @@ -2477,7 +2483,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon if (mUseVPN) { - // updateConfiguration("DNSListenAddress","10.0.0.1:" + TorServiceConstants.TOR_DNS_PORT_DEFAULT,false); + updateConfiguration("DNSListenAddress","10.0.0.1:" + TorServiceConstants.TOR_DNS_PORT_DEFAULT,false); } updateConfiguration("DisableNetwork","0", false); diff --git a/src/org/torproject/android/vpn/OrbotVpnService.java b/src/org/torproject/android/vpn/OrbotVpnService.java index cf3a9d16..bc06f435 100644 --- a/src/org/torproject/android/vpn/OrbotVpnService.java +++ b/src/org/torproject/android/vpn/OrbotVpnService.java @@ -241,7 +241,7 @@ public class OrbotVpnService extends VpnService implements Handler.Callback { final String virtualIP = "10.0.0.2"; final String virtualNetMask = "255.255.255.0"; final String localSocks = "127.0.0.1:" + TorServiceConstants.PORT_SOCKS_DEFAULT; - final String localDNS = "127.0.0.1:" + TorServiceConstants.TOR_DNS_PORT_DEFAULT; + final String localDNS = "10.0.0.1:" + TorServiceConstants.TOR_DNS_PORT_DEFAULT; Builder builder = new Builder();