summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-03-24 12:58:18 +0100
committerParménides GV <parmegv@sdf.org>2015-03-24 12:58:18 +0100
commit4d1ee9cd65d10161d3e818e99cbd06b93e211277 (patch)
treef341707495c893f7133a6e7eae1576a19bdce73e
parent92a48eda9956193cfb143875a849ff979e16e4a9 (diff)
Error in last lines fixed.
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java4
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
index adbbaef3..f9ddc0d2 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
@@ -143,9 +143,9 @@ public class EipStatus extends Observable implements VpnStatus.StateListener {
VpnStatus.LogItem[] log = VpnStatus.getlogbuffer();
String message = "";
for (int i = 0; i < lines; i++) {
- message = log[log.length-1].getString(context);
+ message = log[log.length-i].getString(context);
for(int j = 0; j < error_keywords.length; j++)
- if(message.contains(error_keywords[i]))
+ if(message.contains(error_keywords[j]))
result = true;
}
return result;
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
index 5f5dcabd..25c85585 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
@@ -148,6 +148,6 @@ public class VpnConfigGenerator {
+ new_line
+ "persist-tun"
+ new_line
- + "auth-retry nointeract";
+ + "auth-retry nointeract remove";
}
}