mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Encode client-broker messages as json in HTTP body
Send the client poll request and response in a json-encoded format in the HTTP request body rather than sending the data in HTTP headers. This will pave the way for using domain-fronting alternatives for the Snowflake rendezvous.
This commit is contained in:
parent
ae7cc478fd
commit
270eb21803
7 changed files with 472 additions and 63 deletions
|
@ -13,7 +13,7 @@ type Snowflake struct {
|
|||
proxyType string
|
||||
natType string
|
||||
offerChannel chan *ClientOffer
|
||||
answerChannel chan []byte
|
||||
answerChannel chan string
|
||||
clients int
|
||||
index int
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue