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

[tor-commits] [pluggable-transports/snowflake-webext] 02/02: Have working unrestricted proxies server 2 clients max



This is an automated email from the git hooks/post-receive script.

cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.

commit a8b7508ab0587276faec1a0290732c4bea8c5362
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
AuthorDate: Thu Sep 29 11:34:05 2022 -0400

    Have working unrestricted proxies server 2 clients max
---
 snowflake.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/snowflake.js b/snowflake.js
index fbff283..abb4c11 100644
--- a/snowflake.js
+++ b/snowflake.js
@@ -105,6 +105,7 @@ class Snowflake {
             this.ui.natType = "restricted";
             console.log("Learned NAT type: restricted");
             this.natFailures = 0;
+            this.config.maxNumClients = 1;
           }
           this.broker.setNATType(this.ui.natType);
         } else {
@@ -115,6 +116,7 @@ class Snowflake {
           this.natFailures = 0;
           if (this.ui.natType == "unrestricted") {
             this.pollInterval = this.config.fastBrokerPollInterval;
+            this.config.maxNumClients = 2;
           }
         }
       }), this.config.datachannelTimeout);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits