diff options
Diffstat (limited to 'main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java b/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java index b5884585..a9c458db 100644 --- a/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java +++ b/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java @@ -20,7 +20,7 @@ public class OnBootReceiver extends BroadcastReceiver { final String action = intent.getAction(); if(Intent.ACTION_BOOT_COMPLETED.equals(action)) { - VpnProfile bootProfile = ProfileManager.getOnBootProfile(context); + VpnProfile bootProfile = ProfileManager.getLastConnectedProfile(context, true); if(bootProfile != null) { launchVPN(bootProfile, context); } |