1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Workaround for inconsistent quoting of the Wi-Fi manager

Closes #311
This commit is contained in:
M66B 2016-02-11 14:25:00 +01:00
parent 9bab61ae3c
commit c2681c3046

View file

@ -1041,7 +1041,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
// Update metered state
if (wifi && !useMetered)
metered = false;
if (wifi && ssidHomes.size() > 0 && !ssidHomes.contains(ssidNetwork)) {
if (wifi && ssidHomes.size() > 0 &&
!(ssidHomes.contains(ssidNetwork) || ssidHomes.contains('"' + ssidNetwork + '"'))) {
metered = true;
Log.i(TAG, "!@home");
}