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

n8fr8 at torproject.org n8fr8 at torproject.org
Wed Dec 22 21:55:08 UTC 2021


commit fe38aa2d5c27af367a24b8c5aeaf296ed03dcca6
Author: Tad <tad at spotco.us>
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();





More information about the tor-commits mailing list