diff options
author | cyBerta <cyberta@riseup.net> | 2021-01-18 12:32:47 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-01-18 12:32:47 +0100 |
commit | 71fcf8577611d3163ea81307b04db6ba57950bb7 (patch) | |
tree | cdfc1f9d2cd92e1a8bd67f87bcb0266a9fdcae1e /app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | |
parent | 7e03f3066127d73270baa0fcba3a01a40d802feb (diff) |
fix de-/serialization of Connection objects. Fixes VPN auto-restart on reboot due to always-on system settings or if system killed app due to low memory
Diffstat (limited to 'app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index 0d4a8037..2c1a65dc 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -333,6 +333,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac } else { /* The intent is null when we are set as always-on or the service has been restarted. */ + Log.d(TAG, "Starting VPN due to isAlwaysOn system settings or app crash."); mProfile = VpnStatus.getLastConnectedVpnProfile(this); VpnStatus.logInfo(R.string.service_restarted); |