Change QUIC multicodec to a unique number

It conflicted with CBOR.

part of multiformats/multicodec#55
This commit is contained in:
Steven Allen 2017-07-24 00:36:48 -07:00
parent 71c1bfde36
commit a8637d432a
2 changed files with 5 additions and 5 deletions

View File

@ -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/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) {
@ -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/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")
}

View File

@ -27,7 +27,7 @@ const (
P_UDP = 0x0111
P_DCCP = 0x0021
P_IP6 = 0x0029
P_QUIC = 0x0051
P_QUIC = 0x01CC
P_SCTP = 0x0084
P_UDT = 0x012D
P_UTP = 0x012E