aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-01-15 13:25:56 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2020-01-23 13:45:08 +0100
commitb57f98d2e4950d08abb9b15ce68f28127a611421 (patch)
tree43a2ddb4e0e8a45d661a48401615e22d11279497
parentManifest: make wireguard compatible with android TV (diff)
downloadwireguard-android-b57f98d2e4950d08abb9b15ce68f28127a611421.tar.xz
wireguard-android-b57f98d2e4950d08abb9b15ce68f28127a611421.zip
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 <foxel@quickfox.ru>
-rw-r--r--app/src/main/java/com/wireguard/android/backend/GoBackend.java1
1 files changed, 1 insertions, 0 deletions
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 3e8e1ec..3c4c893 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 {