Prevent ipv6 leak (#224)

Prevent ipv6 leak for OpenVPN
This commit is contained in:
Mykola Baibuz
2023-04-25 11:34:17 -04:00
committed by GitHub
parent 6429ff0603
commit 8a8d38a30f
3 changed files with 4 additions and 1 deletions
@@ -396,7 +396,6 @@ class VPNService : BaseVpnService(), LocalDnsService.Interface {
fun establish(): ParcelFileDescriptor? {
Log.v(tag, "Aman: establish....................")
mbuilder.allowFamily(OsConstants.AF_INET)
mbuilder.allowFamily(OsConstants.AF_INET6)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) mbuilder.setMetered(false)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) setUnderlyingNetworks(null)