multiformats / js-uri-to-multiaddr

Convert a URI to a Multiaddr: https://protocol.ai -> /dns4/protocol.ai/tcp/443/https
Other
3 stars 4 forks source link

Support /dns/ #8

Open lidel opened 4 years ago

lidel commented 4 years ago

Not sure if this is supported already, but filling issue to check

Ref. https://github.com/multiformats/go-multiaddr-dns/pull/17

olizilla commented 4 years ago

As this lib takes urls and returns multiaddrs, should it default to /dns, and allow the user to overide it to use /dns4 or /dns6 as it does currently for dns6... https://github.com/multiformats/js-uri-to-multiaddr#usage