diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 02:02:38 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 02:02:38 +0200 |
commit | 59e2992331f08dfa2799496c18109b93a382b078 (patch) | |
tree | 909bb146a0231d7d831a59c6cfded31cd58cc4a1 /main/src/ui/java | |
parent | f8249f98f37c7b75e56f007c892aab0c7d3e4dca (diff) |
Improve detection and logging of weak md error FAQ hint
Diffstat (limited to 'main/src/ui/java')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java index da652ef9..c51fc2cc 100644 --- a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java +++ b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java @@ -55,6 +55,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable ClientAPI_Status status = connect(); if (status.getError()) { VpnStatus.logError(String.format("connect() error: %s: %s", status.getStatus(), status.getMessage())); + VpnStatus.checkWeakMD(status.getMessage()); } else { VpnStatus.updateStateString("NOPROCESS", "OpenVPN3 thread finished", R.string.state_noprocess, ConnectionStatus.LEVEL_NOTCONNECTED); } @@ -172,7 +173,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable config.setContent(vpnconfig); config.setTunPersist(mVp.mPersistTun); - config.setGuiVersion(mVp.getVersionEnvString(mService)); + config.setGuiVersion(VpnProfile.getVersionEnvString(mService)); config.setSsoMethods("openurl,webauth,crtext"); config.setPlatformVersion(mVp.getPlatformVersionEnvString()); config.setExternalPkiAlias("extpki"); @@ -305,6 +306,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable logmsg = logmsg.substring(0, logmsg.length() - 1); VpnStatus.logInfo(logmsg); + VpnStatus.checkWeakMD(logmsg); } @Override @@ -318,7 +320,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable } else { VpnStatus.logInfo(R.string.info_from_server, info); } - } else if (name.equals("COMPRESSION_ENABLED")) { + } else if (name.equals("COMPRESSION_ENABLED") || name.equals(("WARN"))) { VpnStatus.logInfo(String.format(Locale.US, "%s: %s", name, info)); } else { VpnStatus.updateStateString(name, info); |