mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Update documents for broker messages
This commit is contained in:
parent
0ae4d821f0
commit
e5b799d618
2 changed files with 31 additions and 9 deletions
|
@ -24,15 +24,16 @@ var KnownProxyTypes = map[string]bool{
|
|||
"iptproxy": true,
|
||||
}
|
||||
|
||||
/* Version 1.2 specification:
|
||||
/* Version 1.3 specification:
|
||||
|
||||
== ProxyPollRequest ==
|
||||
{
|
||||
Sid: [generated session id of proxy],
|
||||
Version: 1.2,
|
||||
Version: 1.3,
|
||||
Type: ["badge"|"webext"|"standalone"],
|
||||
NAT: ["unknown"|"restricted"|"unrestricted"],
|
||||
Clients: [number of current clients, rounded down to multiples of 8]
|
||||
Clients: [number of current clients, rounded down to multiples of 8],
|
||||
AcceptedRelayPattern: [a pattern representing accepted set of relay domains]
|
||||
}
|
||||
|
||||
== ProxyPollResponse ==
|
||||
|
@ -44,7 +45,8 @@ HTTP 200 OK
|
|||
type: offer,
|
||||
sdp: [WebRTC SDP]
|
||||
},
|
||||
NAT: ["unknown"|"restricted"|"unrestricted"]
|
||||
NAT: ["unknown"|"restricted"|"unrestricted"],
|
||||
RelayURL: [the WebSocket URL proxy should connect to relay Snowflake traffic]
|
||||
}
|
||||
|
||||
2) If a client is not matched:
|
||||
|
@ -60,7 +62,7 @@ HTTP 400 BadRequest
|
|||
== ProxyAnswerRequest ==
|
||||
{
|
||||
Sid: [generated session id of proxy],
|
||||
Version: 1.2,
|
||||
Version: 1.3,
|
||||
Answer:
|
||||
{
|
||||
type: answer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue