summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@openvpn.net>2019-02-26 17:07:08 +0100
committerArne Schwabe <arne@openvpn.net>2019-02-26 17:07:08 +0100
commite5917f48291e0c2c3307e0582a2376302c9b6b39 (patch)
tree5af7507bd607c7d84018e58ae293aef114559d4e
parentd562caea6176e55bc528d8a9c52a3f99b10a4a6b (diff)
Also retry on AUTH FAILED for OpenVPN3 (closes #961)
-rw-r--r--main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
index 0384985e..dc2ac74f 100644
--- a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
+++ b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
@@ -7,6 +7,7 @@ import net.openvpn.ovpn3.*;
import net.openvpn.ovpn3.ClientAPI_OpenVPNClient;
+import static de.blinkt.openvpn.VpnProfile.AUTH_RETRY_NOINTERACT;
import static net.openvpn.ovpn3.ClientAPI_OpenVPNClient.copyright;
import static net.openvpn.ovpn3.ClientAPI_OpenVPNClient.init_process;
import static net.openvpn.ovpn3.ClientAPI_OpenVPNClient.platform;
@@ -186,6 +187,8 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
config.setCompressionMode("asym");
config.setInfo(true);
config.setAllowLocalLanAccess(mVp.mAllowLocalLAN);
+ boolean retryOnAuthFailed= mVp.mAuthRetry == AUTH_RETRY_NOINTERACT;
+ config.setRetryOnAuthFailed(retryOnAuthFailed);
ClientAPI_EvalConfig ec = eval_config(config);
if(ec.getExternalPki()) {