[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] only set disallowed if "per app" is not being used



commit 482696b9b6442e9b636fb6c299bd2b67c8810df7
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
Date:   Wed Aug 11 16:34:15 2021 -0400

    only set disallowed if "per app" is not being used
---
 .../java/org/torproject/android/service/vpn/OrbotVpnManager.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
index 08441a67..d78789c6 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
@@ -352,11 +352,11 @@ public class OrbotVpnManager implements Handler.Callback {
             }
         }
 
-        for (String packageName : VpnPrefs.BYPASS_VPN_PACKAGES)
-            builder.addDisallowedApplication(packageName);
-
-        if (!perAppEnabled)
+        if (!perAppEnabled) {
             builder.addDisallowedApplication(mService.getPackageName());
+            for (String packageName : VpnPrefs.BYPASS_VPN_PACKAGES)
+                builder.addDisallowedApplication(packageName);
+        }
 
     }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits