mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
add comment for ClientConnectionMetadata
This commit is contained in:
parent
51eb36051c
commit
6e0bc74fb8
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ func DecodeClientPollResponse(data []byte) (*ClientPollResponse, error) {
|
||||||
return &message, nil
|
return &message, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ClientConnectionMetadata is a struct that contains metadata about a snowflake connection between client and server
|
||||||
|
// It will be sent from the client to the proxy in WebRTC data channel protocol string
|
||||||
|
// The proxy will then send the metadata to the server in the protocol get parameter of the WebSocket connection
|
||||||
type ClientConnectionMetadata struct {
|
type ClientConnectionMetadata struct {
|
||||||
ClientID []byte `json:"client_id"`
|
ClientID []byte `json:"client_id"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue