From d29e50e50bcf4dd339cb93fdab22578eb56b902f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 15 Jan 2020 13:25:56 -0500 Subject: GoBackend: set empty underlying networks https://lists.zx2c4.com/pipermail/wireguard/2020-January/004859.html https://issuetracker.google.com/issues/114309459 https://developer.android.com/about/versions/pie/android-9.0-changes-all#network-capabilities-vpn Apparently we need to call this at least once. Reported-by: Andrey Kupreychik Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/backend/GoBackend.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/com') diff --git a/app/src/main/java/com/wireguard/android/backend/GoBackend.java b/app/src/main/java/com/wireguard/android/backend/GoBackend.java index 3e8e1ec9..3c4c8939 100644 --- a/app/src/main/java/com/wireguard/android/backend/GoBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/GoBackend.java @@ -224,6 +224,7 @@ public final class GoBackend implements Backend { currentTunnel = tunnel; + service.setUnderlyingNetworks(null); service.protect(wgGetSocketV4(currentTunnelHandle)); service.protect(wgGetSocketV6(currentTunnelHandle)); } else { -- cgit v1.2.3