From c2681c30460f4b0d726b325c4b4a1cb08df47632 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Feb 2016 14:25:00 +0100 Subject: [PATCH] Workaround for inconsistent quoting of the Wi-Fi manager Closes #311 --- app/src/main/java/eu/faircode/netguard/SinkholeService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/SinkholeService.java b/app/src/main/java/eu/faircode/netguard/SinkholeService.java index 6a2ebe9d..d796c4b7 100644 --- a/app/src/main/java/eu/faircode/netguard/SinkholeService.java +++ b/app/src/main/java/eu/faircode/netguard/SinkholeService.java @@ -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"); }