mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
more complete and improved client rendezvous tests
This commit is contained in:
parent
361da32ecb
commit
00196bbd74
3 changed files with 58 additions and 20 deletions
|
@ -59,7 +59,8 @@ type SnowflakeChannel interface {
|
|||
// Maintain |SnowflakeCapacity| number of available WebRTC connections, to
|
||||
// transfer to the Tor SOCKS handler when needed.
|
||||
func SnowflakeConnectLoop() {
|
||||
broker = NewBrokerChannel(brokerURL, frontDomain)
|
||||
transport := CreateBrokerTransport()
|
||||
broker = NewBrokerChannel(brokerURL, frontDomain, transport)
|
||||
for {
|
||||
numRemotes := len(webrtcRemotes)
|
||||
if numRemotes >= SnowflakeCapacity {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue