We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c0913 commit cbdb5faCopy full SHA for cbdb5fa
protocols.go
@@ -32,6 +32,7 @@ const (
32
P_GARLIC32 = 0x01BF
33
P_P2P_WEBRTC_DIRECT = 0x0114
34
P_TLS = 0x01c0
35
+ P_SNI = 0x01c1
36
P_NOISE = 0x01c6
37
P_WS = 0x01DD
38
P_WSS = 0x01DE // deprecated alias for /tls/ws
@@ -228,6 +229,13 @@ var (
228
229
Code: P_TLS,
230
VCode: CodeToVarint(P_TLS),
231
}
232
+ protoSNI = Protocol{
233
+ Name: "sni",
234
+ Size: LengthPrefixedVarSize,
235
+ Code: P_SNI,
236
+ VCode: CodeToVarint(P_SNI),
237
+ Transcoder: TranscoderDns,
238
+ }
239
protoNOISE = Protocol{
240
Name: "noise",
241
Code: P_NOISE,
@@ -285,6 +293,7 @@ func init() {
285
293
protoUNIX,
286
294
protoP2P_WEBRTC_DIRECT,
287
295
protoTLS,
296
+ protoSNI,
288
297
protoNOISE,
289
298
protoWS,
290
299
protoWSS,
0 commit comments