mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Fixed name of Tor mobile data setting. #316
This commit is contained in:
@@ -681,7 +681,7 @@ class TorPlugin implements DuplexPlugin, EventHandler,
|
|||||||
boolean blocked = TorNetworkMetadata.isTorProbablyBlocked(
|
boolean blocked = TorNetworkMetadata.isTorProbablyBlocked(
|
||||||
country);
|
country);
|
||||||
Settings s = callback.getSettings();
|
Settings s = callback.getSettings();
|
||||||
boolean wifiOnly = s.getBoolean("torOverWifi", false);
|
boolean useMobileData = s.getBoolean("torOverMobile", true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!online) {
|
if (!online) {
|
||||||
@@ -690,8 +690,8 @@ class TorPlugin implements DuplexPlugin, EventHandler,
|
|||||||
} else if (blocked) {
|
} else if (blocked) {
|
||||||
LOG.info("Disabling network, country is blocked");
|
LOG.info("Disabling network, country is blocked");
|
||||||
enableNetwork(false);
|
enableNetwork(false);
|
||||||
} else if (wifiOnly & !connectedToWifi) {
|
} else if (!useMobileData & !connectedToWifi) {
|
||||||
LOG.info("Disabling network due to wifi setting");
|
LOG.info("Disabling network due to data setting");
|
||||||
enableNetwork(false);
|
enableNetwork(false);
|
||||||
} else {
|
} else {
|
||||||
enableNetwork(true);
|
enableNetwork(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user