Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webrtc #179

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
P_WS = 0x01DD
P_WSS = 0x01DE // deprecated alias for /tls/ws
P_PLAINTEXTV2 = 0x706c61
P_WEBRTC = 0x115
)

var (
Expand Down Expand Up @@ -247,6 +248,11 @@ var (
Code: P_WSS,
VCode: CodeToVarint(P_WSS),
}
protoXWebRTC = Protocol {
ckousik marked this conversation as resolved.
Show resolved Hide resolved
Name: "webrtc",
Code: P_WEBRTC,
VCode: CodeToVarint(P_WEBRTC),
}
)

func init() {
Expand Down
1 change: 1 addition & 0 deletions transcoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,4 @@ func certHashStB(s string) ([]byte, error) {
func certHashBtS(b []byte) (string, error) {
return multibase.Encode(multibase.Base64url, b)
}

ckousik marked this conversation as resolved.
Show resolved Hide resolved