File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,9 @@ func TestConstructSucceeds(t *testing.T) {
169
169
"/ip4/127.0.0.1/tcp/9090/http/p2p-webrtc-direct" ,
170
170
"/ip4/127.0.0.1/tcp/127/ws" ,
171
171
"/ip4/127.0.0.1/tcp/127/ws" ,
172
+ "/ip4/127.0.0.1/tcp/127/tls" ,
172
173
"/ip4/127.0.0.1/tcp/127/tls/ws" ,
174
+ "/ip4/127.0.0.1/tcp/127/noise" ,
173
175
"/ip4/127.0.0.1/tcp/127/wss" ,
174
176
"/ip4/127.0.0.1/tcp/127/wss" ,
175
177
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const (
29
29
P_GARLIC32 = 0x01BF
30
30
P_P2P_WEBRTC_DIRECT = 0x0114
31
31
P_TLS = 0x01c0
32
+ P_NOISE = 0x01c6
32
33
P_WS = 0x01DD
33
34
P_WSS = 0x01DE // deprecated alias for /tls/ws
34
35
)
@@ -202,7 +203,11 @@ var (
202
203
Name : "tls" ,
203
204
Code : P_TLS ,
204
205
VCode : CodeToVarint (P_TLS ),
205
- Size : 0 ,
206
+ }
207
+ protoNOISE = Protocol {
208
+ Name : "noise" ,
209
+ Code : P_NOISE ,
210
+ VCode : CodeToVarint (P_NOISE ),
206
211
}
207
212
protoWS = Protocol {
208
213
Name : "ws" ,
@@ -243,6 +248,7 @@ func init() {
243
248
protoUNIX ,
244
249
protoP2P_WEBRTC_DIRECT ,
245
250
protoTLS ,
251
+ protoNOISE ,
246
252
protoWS ,
247
253
protoWSS ,
248
254
} {
You can’t perform that action at this time.
0 commit comments