fix(multiaddress): add quic-v1 multiaddress support (#988)

This commit is contained in:
diegomrsantos 2023-11-20 11:09:56 +01:00 committed by GitHub
parent 4b3bc4f819
commit e12f65f193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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",