mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Refactoring
This commit is contained in:
parent
95e535ff58
commit
7645864e46
1 changed files with 1 additions and 2 deletions
|
@ -1250,9 +1250,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
Builder builder = new Builder();
|
||||
builder.setSession(getString(R.string.app_name));
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
builder.setMetered(Util.isMeteredNetwork(this));
|
||||
}
|
||||
|
||||
// VPN address
|
||||
String vpn4 = prefs.getString("vpn4", "10.1.10.1");
|
||||
|
|
Loading…
Reference in a new issue