From 822fb455994fabff53db1108f3f5ff8ee1b7de02 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 13 Jan 2018 13:37:46 +0100 Subject: More fixes for OpenVPN3 (end service on disconnect) --- main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main/src/ovpn3') 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 3e52eaec..b96b0cde 100644 --- a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java +++ b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java @@ -179,6 +179,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable config.setContent(vpnconfig); config.setTunPersist(mVp.mPersistTun); config.setGuiVersion(mVp.getVersionEnvString(mService)); + config.setPlatformVersion(mVp.getPlatformVersionEnvString()); config.setExternalPkiAlias("extpki"); ClientAPI_EvalConfig ec = eval_config(config); @@ -250,7 +251,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable @Override public void networkChange(boolean sameNetwork) { - + reconnect(1); } @Override @@ -289,6 +290,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable @Override public void stop() { super.stop(); + mService.openvpnStopped(); } @Override -- cgit v1.2.3