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
e0eb8cdf
Commit
e0eb8cdf
authored
Apr 06, 2022
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for WebTransport
parent
f5adc3b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
multiaddr_test.go
multiaddr_test.go
+1
-0
protocols.go
protocols.go
+7
-0
No files found.
multiaddr_test.go
View file @
e0eb8cdf
...
...
@@ -157,6 +157,7 @@ func TestConstructSucceeds(t *testing.T) {
"/ip4/127.0.0.1/tcp/1234"
,
"/ip4/127.0.0.1/tcp/1234/"
,
"/ip4/127.0.0.1/udp/1234/quic"
,
"/ip4/127.0.0.1/udp/1234/quic/webtransport"
,
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC"
,
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tcp/1234"
,
"/ip4/127.0.0.1/ipfs/k2k4r8oqamigqdo6o7hsbfwd45y70oyynp98usk7zmyfrzpqxh1pohl7"
,
...
...
protocols.go
View file @
e0eb8cdf
...
...
@@ -15,6 +15,7 @@ const (
P_IP6ZONE
=
0x002A
P_IPCIDR
=
0x002B
P_QUIC
=
0x01CC
P_WEBTRANSPORT
=
0x01D1
P_SCTP
=
0x0084
P_CIRCUIT
=
0x0122
P_UDT
=
0x012D
...
...
@@ -178,6 +179,11 @@ var (
Code
:
P_QUIC
,
VCode
:
CodeToVarint
(
P_QUIC
),
}
protoWEBTRANSPORT
=
Protocol
{
Name
:
"webtransport"
,
Code
:
P_WEBTRANSPORT
,
VCode
:
CodeToVarint
(
P_WEBTRANSPORT
),
}
protoHTTP
=
Protocol
{
Name
:
"http"
,
Code
:
P_HTTP
,
...
...
@@ -257,6 +263,7 @@ func init() {
protoUTP
,
protoUDT
,
protoQUIC
,
protoWEBTRANSPORT
,
protoHTTP
,
protoHTTPS
,
protoP2P
,
...
...
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