summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2014-03-01 18:49:35 -0800
committerSean Leonard <meanderingcode@aetherislands.net>2014-03-01 18:49:35 -0800
commitfd84feba5aa3ad86c54ed99d62e08be9f1681d57 (patch)
tree6d4bbb0086c2ce40853a13204f2dc8aa168dfd26 /src/se/leap/bitmaskclient
parent8ddd506b648ff4b91d506c8bd9b423e6c1a9f6b8 (diff)
Better host matching when updating gateways list
Diffstat (limited to 'src/se/leap/bitmaskclient')
-rw-r--r--src/se/leap/bitmaskclient/EIP.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/se/leap/bitmaskclient/EIP.java b/src/se/leap/bitmaskclient/EIP.java
index c9d3e5ba..169178d1 100644
--- a/src/se/leap/bitmaskclient/EIP.java
+++ b/src/se/leap/bitmaskclient/EIP.java
@@ -452,9 +452,10 @@ public final class EIP extends IntentService {
for (Iterator<VpnProfile> it = profiles.iterator(); it.hasNext(); ){
VpnProfile p = it.next();
try {
- if ( p.mName.contains( gateway.getString("host") ) )
+ if ( p.mName.equalsIgnoreCase( gateway.getString("host") ) ){
it.remove();
vpl.removeProfile(context, p);
+ }
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();