File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ func TestConstructSucceeds(t *testing.T) {
157
157
"/ip4/127.0.0.1/tcp/1234" ,
158
158
"/ip4/127.0.0.1/tcp/1234/" ,
159
159
"/ip4/127.0.0.1/udp/1234/quic" ,
160
+ "/ip4/127.0.0.1/udp/1234/quic/webtransport" ,
160
161
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC" ,
161
162
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tcp/1234" ,
162
163
"/ip4/127.0.0.1/ipfs/k2k4r8oqamigqdo6o7hsbfwd45y70oyynp98usk7zmyfrzpqxh1pohl7" ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const (
15
15
P_IP6ZONE = 0x002A
16
16
P_IPCIDR = 0x002B
17
17
P_QUIC = 0x01CC
18
+ P_WEBTRANSPORT = 0x01D1
18
19
P_SCTP = 0x0084
19
20
P_CIRCUIT = 0x0122
20
21
P_UDT = 0x012D
@@ -178,6 +179,11 @@ var (
178
179
Code : P_QUIC ,
179
180
VCode : CodeToVarint (P_QUIC ),
180
181
}
182
+ protoWEBTRANSPORT = Protocol {
183
+ Name : "webtransport" ,
184
+ Code : P_WEBTRANSPORT ,
185
+ VCode : CodeToVarint (P_WEBTRANSPORT ),
186
+ }
181
187
protoHTTP = Protocol {
182
188
Name : "http" ,
183
189
Code : P_HTTP ,
@@ -257,6 +263,7 @@ func init() {
257
263
protoUTP ,
258
264
protoUDT ,
259
265
protoQUIC ,
266
+ protoWEBTRANSPORT ,
260
267
protoHTTP ,
261
268
protoHTTPS ,
262
269
protoP2P ,
You can’t perform that action at this time.
0 commit comments