summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-31 17:11:58 +0100
committerParménides GV <parmegv@sdf.org>2014-12-31 17:11:58 +0100
commit56e05aecf8430ddad776776e536583686555443a (patch)
tree1061d6b685fd0ecf057922b6226fb6c7ba6fb508 /app/src/main
parent8d7bedaa40129ae809f3e1261228b00042872f62 (diff)
Update gateway also if credentials changed.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java b/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java
index 79239308..e23f67c7 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java
@@ -141,7 +141,10 @@ public class Gateway {
@Override
public boolean equals(Object o) {
if(o instanceof Gateway) {
- return ((Gateway) o).getProfile().mConnections.equals(mVpnProfile.mConnections);
+ VpnProfile compared_profile = ((Gateway) o).getProfile();
+ return compared_profile.mConnections.equals(mVpnProfile.mConnections)
+ && compared_profile.mClientCertFilename != mVpnProfile.mClientCertFilename
+ && compared_profile.mClientKeyFilename != mVpnProfile.mClientKeyFilename;
}
else
return super.equals(o);