From fd84feba5aa3ad86c54ed99d62e08be9f1681d57 Mon Sep 17 00:00:00 2001 From: Sean Leonard Date: Sat, 1 Mar 2014 18:49:35 -0800 Subject: Better host matching when updating gateways list --- src/se/leap/bitmaskclient/EIP.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/se/leap/bitmaskclient') 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 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(); -- cgit v1.2.3