From 145a6c9b4fded8742b154b6e301f671cab692ecc Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 11 Jan 2022 12:09:51 -0500 Subject: [PATCH] Mark VPN as unmetered (#53) --- .../main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt index da58aef..7281b13 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt @@ -91,6 +91,7 @@ class NebulaVpnService : VpnService() { .addRoute(ipNet.network, ipNet.maskSize.toInt()) .setMtu(site!!.mtu) .setSession(TAG) + .setMetered(false) .allowFamily(OsConstants.AF_INET) .allowFamily(OsConstants.AF_INET6);