Don't fail on unknown codec / protocol #103
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
P2
Medium: Good to have, but can wait until someone steps up
Various commands return CID or Multiaddr instances.
For example, fetching
ipfs.swarm.peers
will return peers and their protocols.The problem is that over time new codecs and protocols identified by new codes from this table appear, and software that uses older version of this library should not crash like it currently does.
Some examples: ipfs/ipfs-webui#2033, ipfs/ipfs-desktop#2363 (comment).
Solution
TBD, may require upstream changes to https://github.com/multiformats/js-multiaddr and https://github.com/multiformats/js-multiformats/, or maybe just ignoring (skipping) unsupported entries is enough?
The text was updated successfully, but these errors were encountered: