mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Stop storing version in ClientPollRequest
This continues to asserts the known version while decoding. The client will only ever generate the latest version while encoding and if the response needs to change, the impetus will be a new feature, set in the deserialized request, which can be used as a distinguisher.
This commit is contained in:
parent
b73add1550
commit
281d917beb
6 changed files with 22 additions and 53 deletions
|
@ -116,9 +116,8 @@ func (bc *BrokerChannel) Negotiate(offer *webrtc.SessionDescription) (
|
|||
// Encode the client poll request.
|
||||
bc.lock.Lock()
|
||||
req := &messages.ClientPollRequest{
|
||||
Offer: offerSDP,
|
||||
NAT: bc.natType,
|
||||
Version: messages.ClientVersion1_0,
|
||||
Offer: offerSDP,
|
||||
NAT: bc.natType,
|
||||
}
|
||||
encReq, err := req.EncodeClientPollRequest()
|
||||
bc.lock.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue