mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-08 16:03:06 +00:00
Change QUIC multicodec to a unique number
It conflicted with CBOR. part of multiformats/multicodec#55
This commit is contained in:
parent
71c1bfde36
commit
a8637d432a
@ -157,9 +157,9 @@ func TestStringToBytes(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testString("/ip4/127.0.0.1/udp/1234", "047f0000011104d2")
|
testString("/ip4/127.0.0.1/udp/1234", "047f000001910204d2")
|
||||||
testString("/ip4/127.0.0.1/tcp/4321", "047f0000010610e1")
|
testString("/ip4/127.0.0.1/tcp/4321", "047f0000010610e1")
|
||||||
testString("/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321", "047f0000011104d2047f0000010610e1")
|
testString("/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321", "047f000001910204d2047f0000010610e1")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBytesToString(t *testing.T) {
|
func TestBytesToString(t *testing.T) {
|
||||||
@ -184,9 +184,9 @@ func TestBytesToString(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testString("/ip4/127.0.0.1/udp/1234", "047f0000011104d2")
|
testString("/ip4/127.0.0.1/udp/1234", "047f000001910204d2")
|
||||||
testString("/ip4/127.0.0.1/tcp/4321", "047f0000010610e1")
|
testString("/ip4/127.0.0.1/tcp/4321", "047f0000010610e1")
|
||||||
testString("/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321", "047f0000011104d2047f0000010610e1")
|
testString("/ip4/127.0.0.1/udp/1234/ip4/127.0.0.1/tcp/4321", "047f000001910204d2047f0000010610e1")
|
||||||
testString("/onion/aaimaq4ygg2iegci:80", "bc030010c0439831b48218480050")
|
testString("/onion/aaimaq4ygg2iegci:80", "bc030010c0439831b48218480050")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ const (
|
|||||||
P_UDP = 0x0111
|
P_UDP = 0x0111
|
||||||
P_DCCP = 0x0021
|
P_DCCP = 0x0021
|
||||||
P_IP6 = 0x0029
|
P_IP6 = 0x0029
|
||||||
P_QUIC = 0x0051
|
P_QUIC = 0x01CC
|
||||||
P_SCTP = 0x0084
|
P_SCTP = 0x0084
|
||||||
P_UDT = 0x012D
|
P_UDT = 0x012D
|
||||||
P_UTP = 0x012E
|
P_UTP = 0x012E
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user