Skip to content
Snippets Groups Projects
Unverified Commit c35cad97 authored by akwizgran's avatar akwizgran
Browse files

Fixed name of Tor mobile data setting. #316

parent ea973b61
No related branches found
No related tags found
No related merge requests found
......@@ -681,7 +681,7 @@ class TorPlugin implements DuplexPlugin, EventHandler,
boolean blocked = TorNetworkMetadata.isTorProbablyBlocked(
country);
Settings s = callback.getSettings();
boolean wifiOnly = s.getBoolean("torOverWifi", false);
boolean useMobileData = s.getBoolean("torOverMobile", true);
try {
if (!online) {
......@@ -690,8 +690,8 @@ class TorPlugin implements DuplexPlugin, EventHandler,
} else if (blocked) {
LOG.info("Disabling network, country is blocked");
enableNetwork(false);
} else if (wifiOnly & !connectedToWifi) {
LOG.info("Disabling network due to wifi setting");
} else if (!useMobileData & !connectedToWifi) {
LOG.info("Disabling network due to data setting");
enableNetwork(false);
} else {
enableNetwork(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment