core/transport: Extend MultiaddrNotSupported
error
#2980
Labels
difficulty:moderate
getting-started
Issues that can be tackled if you don't know the internals of libp2p very well
help wanted
I have had the problem multiple times where I pass a malformed
Multiaddr
to a hierarchy ofTransport
implementations (e.g. relayed addresses are tricky) and myMultiaddr
is being denied viaMutliaddrNotSupported
.Say I have the following address:
/dns6/xxx/tcp/xxx/p2p/xxx/p2p-circuit/p2p/xxx
. When I get aMultiaddrNotSupported
I don't know whether this is due to:libp2p-relay
.libp2p-dns
.libp2p-dns
being malformed forlibp2p-tcp
.In addition to not knowing where it has been denied, I don't know what the reason for denial was.
Extending
MultiaddrNotSupported
with something implementignError
would allowTransport
implementations to add details to the error.Originally posted by @mxinden in #2289 (comment)
The text was updated successfully, but these errors were encountered: