mirror of https://github.com/vacp2p/nim-libp2p.git
fix(multiaddress): add quic-v1 multiaddress support (#988)
This commit is contained in:
parent
4b3bc4f819
commit
e12f65f193
|
@ -398,6 +398,9 @@ const
|
||||||
MAProtocol(
|
MAProtocol(
|
||||||
mcodec: multiCodec("quic"), kind: Marker, size: 0
|
mcodec: multiCodec("quic"), kind: Marker, size: 0
|
||||||
),
|
),
|
||||||
|
MAProtocol(
|
||||||
|
mcodec: multiCodec("quic-v1"), kind: Marker, size: 0
|
||||||
|
),
|
||||||
MAProtocol(
|
MAProtocol(
|
||||||
mcodec: multiCodec("ip6zone"), kind: Length, size: 0,
|
mcodec: multiCodec("ip6zone"), kind: Length, size: 0,
|
||||||
coder: TranscoderIP6Zone
|
coder: TranscoderIP6Zone
|
||||||
|
|
|
@ -193,6 +193,7 @@ const MultiCodecList = [
|
||||||
("https", 0x01BB),
|
("https", 0x01BB),
|
||||||
("tls", 0x01C0),
|
("tls", 0x01C0),
|
||||||
("quic", 0x01CC),
|
("quic", 0x01CC),
|
||||||
|
("quic-v1", 0x01CD),
|
||||||
("ws", 0x01DD),
|
("ws", 0x01DD),
|
||||||
("wss", 0x01DE),
|
("wss", 0x01DE),
|
||||||
("p2p-websocket-star", 0x01DF), # not in multicodec list
|
("p2p-websocket-star", 0x01DF), # not in multicodec list
|
||||||
|
|
|
@ -60,6 +60,7 @@ const
|
||||||
"/ip4/127.0.0.1/tcp/1234",
|
"/ip4/127.0.0.1/tcp/1234",
|
||||||
"/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",
|
||||||
|
"/ip4/192.168.80.3/udp/33422/quic-v1",
|
||||||
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
|
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
|
||||||
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tcp/1234",
|
"/ip4/127.0.0.1/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC/tcp/1234",
|
||||||
"/ip4/127.0.0.1/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
|
"/ip4/127.0.0.1/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
|
||||||
|
|
Loading…
Reference in New Issue