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
a8637d43
Commit
a8637d43
authored
Jul 24, 2017
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change QUIC multicodec to a unique number
It conflicted with CBOR. part of multiformats/multicodec#55
parent
71c1bfde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
multiaddr_test.go
multiaddr_test.go
+4
-4
protocols.go
protocols.go
+1
-1
No files found.
multiaddr_test.go
View file @
a8637d43
...
...
@@ -157,9 +157,9 @@ func TestStringToBytes(t *testing.T) {
}
}
testString
(
"/ip4/127.0.0.1/udp/1234"
,
"047f000001
11
04d2"
)
testString
(
"/ip4/127.0.0.1/udp/1234"
,
"047f000001
9102
04d2"
)
testString
(
"/ip4/127.0.0.1/tcp/4321"
,
"047f0000010610e1"
)
testString
(
"/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321"
,
"047f000001
11
04d2047f0000010610e1"
)
testString
(
"/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321"
,
"047f000001
9102
04d2047f0000010610e1"
)
}
func
TestBytesToString
(
t
*
testing
.
T
)
{
...
...
@@ -184,9 +184,9 @@ func TestBytesToString(t *testing.T) {
}
}
testString
(
"/ip4/127.0.0.1/udp/1234"
,
"047f000001
11
04d2"
)
testString
(
"/ip4/127.0.0.1/udp/1234"
,
"047f000001
9102
04d2"
)
testString
(
"/ip4/127.0.0.1/tcp/4321"
,
"047f0000010610e1"
)
testString
(
"/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321"
,
"047f000001
11
04d2047f0000010610e1"
)
testString
(
"/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321"
,
"047f000001
9102
04d2047f0000010610e1"
)
testString
(
"/onion/aaimaq4ygg2iegci:80"
,
"bc030010c0439831b48218480050"
)
}
...
...
protocols.go
View file @
a8637d43
...
...
@@ -27,7 +27,7 @@ const (
P_UDP
=
0x0111
P_DCCP
=
0x0021
P_IP6
=
0x0029
P_QUIC
=
0x0
051
P_QUIC
=
0x0
1CC
P_SCTP
=
0x0084
P_UDT
=
0x012D
P_UTP
=
0x012E
...
...
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