mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-26 16:13:01 +00:00
Native conditional reload
This commit is contained in:
parent
65cc667d71
commit
7430c8a65b
1 changed files with 2 additions and 1 deletions
|
@ -275,7 +275,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
if (vpn == null)
|
||||
throw new IllegalStateException("Handover failed");
|
||||
}
|
||||
jni_reload(vpn.getFd());
|
||||
if (prefs.getBoolean("log", false))
|
||||
jni_reload(vpn.getFd());
|
||||
if (prev != null)
|
||||
stopVPN(prev);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue