summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 04:51:10 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 07:06:28 +0200
commitdc99f6ab4faa8e429b3dbf6a26125c730328b6c4 (patch)
tree3afd51c83212b0861ce887a5718d40cddb1670dd /app/src/main/java
parent402d59a4ecfa5b65ac69f9a30521b2425d32209b (diff)
TunnelManager: disable dangerous intents for now
We need to think about how to allow this securely. It's not okay for all apps to be allowed to twiddle with VPN settings.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/model/TunnelManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/model/TunnelManager.java b/app/src/main/java/com/wireguard/android/model/TunnelManager.java
index 4267e76c..91d98842 100644
--- a/app/src/main/java/com/wireguard/android/model/TunnelManager.java
+++ b/app/src/main/java/com/wireguard/android/model/TunnelManager.java
@@ -284,6 +284,12 @@ public final class TunnelManager extends BaseObservable {
return;
}
+ /* We disable the below, for now, as the security model of allowing this
+ * might take a bit more consideration.
+ */
+ if (true)
+ return;
+
final State state;
if ("com.wireguard.android.action.SET_TUNNEL_UP".equals(action))
state = State.UP;