mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Update broker--proxy protocol with proxy type
Proxies now include information about what type they are when they poll for client offers. The broker saves this information along with snowflake ids and outputs it on the /debug page.
This commit is contained in:
parent
7092b2cb2c
commit
7277bb37cd
6 changed files with 75 additions and 40 deletions
|
@ -175,7 +175,7 @@ func (b *Broker) pollOffer(sid string) *webrtc.SessionDescription {
|
|||
timeOfNextPoll = now
|
||||
}
|
||||
|
||||
body, err := messages.EncodePollRequest(sid)
|
||||
body, err := messages.EncodePollRequest(sid, "standalone")
|
||||
if err != nil {
|
||||
log.Printf("Error encoding poll message: %s", err.Error())
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue