mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Set max number of snowflakes in the Tongue
This commit is contained in:
parent
1364d7d45b
commit
cc55481faf
6 changed files with 52 additions and 32 deletions
|
@ -144,8 +144,10 @@ var sessionManager = sessionManager_{}
|
|||
// remote peer and exchange traffic.
|
||||
func Handler(socks net.Conn, tongue Tongue) error {
|
||||
// Prepare to collect remote WebRTC peers.
|
||||
snowflakes := NewPeers(1)
|
||||
snowflakes.Tongue = tongue
|
||||
snowflakes, err := NewPeers(tongue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Use a real logger to periodically output how much traffic is happening.
|
||||
snowflakes.BytesLogger = NewBytesSyncLogger()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue