mirror of https://github.com/M66B/NetGuard.git
Better handle fail over problems
This commit is contained in:
parent
61eb1652e5
commit
81b3148ddf
|
@ -671,7 +671,12 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
builder.setBlocking(true);
|
||||
|
||||
// Start VPN service
|
||||
return builder.establish();
|
||||
try {
|
||||
return builder.establish();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private void stopVPN(ParcelFileDescriptor pfd) {
|
||||
|
|
Loading…
Reference in New Issue