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

[tor-commits] [orbot/master] Fixup snowflake limit check



commit fe38aa2d5c27af367a24b8c5aeaf296ed03dcca6
Author: Tad <tad@xxxxxxxxx>
Date:   Tue Jun 29 15:04:44 2021 -0400

    Fixup snowflake limit check
---
 .../main/java/org/torproject/android/service/OrbotService.java   | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
index 9ebd506f..24567591 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
@@ -1558,10 +1558,13 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
                     else if (Prefs.beSnowflakeProxy())
                     {
 
-                        if (Prefs.limitSnowflakeProxying()
-                        && isChargingAndWifi(OrbotService.this))
+                        if (Prefs.limitSnowflakeProxying())
                         {
-                            enableSnowflakeProxy();
+                                if (isChargingAndWifi(OrbotService.this))
+                                {
+                                    enableSnowflakeProxy();
+                                }
+
                         }
                         else
                             enableSnowflakeProxy();



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