Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
cbdb5fa1
Commit
cbdb5fa1
authored
Sep 07, 2022
by
Marco Munizaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SNI
parent
e8c0913a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
protocols.go
protocols.go
+9
-0
No files found.
protocols.go
View file @
cbdb5fa1
...
...
@@ -32,6 +32,7 @@ const (
P_GARLIC32
=
0x01BF
P_P2P_WEBRTC_DIRECT
=
0x0114
P_TLS
=
0x01c0
P_SNI
=
0x01c1
P_NOISE
=
0x01c6
P_WS
=
0x01DD
P_WSS
=
0x01DE
// deprecated alias for /tls/ws
...
...
@@ -228,6 +229,13 @@ var (
Code
:
P_TLS
,
VCode
:
CodeToVarint
(
P_TLS
),
}
protoSNI
=
Protocol
{
Name
:
"sni"
,
Size
:
LengthPrefixedVarSize
,
Code
:
P_SNI
,
VCode
:
CodeToVarint
(
P_SNI
),
Transcoder
:
TranscoderDns
,
}
protoNOISE
=
Protocol
{
Name
:
"noise"
,
Code
:
P_NOISE
,
...
...
@@ -285,6 +293,7 @@ func init() {
protoUNIX
,
protoP2P_WEBRTC_DIRECT
,
protoTLS
,
protoSNI
,
protoNOISE
,
protoWS
,
protoWSS
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment