mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Show VPN start exceptions
This commit is contained in:
parent
c0c5b2b94f
commit
39cfeac239
1 changed files with 3 additions and 0 deletions
|
@ -320,6 +320,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
} catch (Throwable ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
|
||||
showErrorNotification(ex.toString());
|
||||
|
||||
if (!(ex instanceof IllegalStateException)) {
|
||||
// Disable firewall
|
||||
prefs.edit().putBoolean("enabled", false).apply();
|
||||
|
@ -427,6 +429,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
startNative(vpn, listAllowed);
|
||||
}
|
||||
|
||||
removeWarningNotifications();
|
||||
updateEnforcingNotification(listAllowed.size(), listRule.size());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue