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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
a2ccbf003c
commit
c4e32328fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user