mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Rename *PollRequest methods to distinguish client/proxy
This commit is contained in:
parent
6e29dc676c
commit
6fd0f1ae5d
8 changed files with 12 additions and 12 deletions
|
@ -125,7 +125,7 @@ func (bc *BrokerChannel) Negotiate(offer *webrtc.SessionDescription) (
|
|||
Offer: offerSDP,
|
||||
NAT: bc.natType,
|
||||
}
|
||||
encReq, err := req.EncodePollRequest()
|
||||
encReq, err := req.EncodeClientPollRequest()
|
||||
bc.lock.Unlock()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -45,7 +45,7 @@ func makeEncPollReq(offer string) []byte {
|
|||
encPollReq, err := (&messages.ClientPollRequest{
|
||||
Offer: offer,
|
||||
NAT: nat.NATUnknown,
|
||||
}).EncodePollRequest()
|
||||
}).EncodeClientPollRequest()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue