mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
fix Peers.Count() using activePeers list, mark for delete on Close, and remove
maxedChan
This commit is contained in:
parent
c63f5cfc0a
commit
2caa47988d
4 changed files with 94 additions and 66 deletions
|
@ -18,9 +18,10 @@ type WebRTCDialer struct {
|
|||
}
|
||||
|
||||
func NewWebRTCDialer(broker *BrokerChannel) *WebRTCDialer {
|
||||
config := webrtc.NewConfiguration(iceServers...)
|
||||
return &WebRTCDialer{
|
||||
broker,
|
||||
webrtc.NewConfiguration(iceServers...),
|
||||
BrokerChannel: broker,
|
||||
webrtcConfig: config,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue