File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ const interpreters: Record<string, Interpreter> = {
64
64
dnsaddr : ( value : string , restMa : StringTuple [ ] ) => value ,
65
65
dns4 : ( value : string , restMa : StringTuple [ ] ) => value ,
66
66
dns6 : ( value : string , restMa : StringTuple [ ] ) => value ,
67
+ dns : ( value : string , restMa : StringTuple [ ] ) => value ,
67
68
ipfs : ( value : string , restMa : StringTuple [ ] ) => {
68
69
const tailProto = restMa . pop ( )
69
70
if ( tailProto === undefined ) {
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ describe('multiaddr-to-uri', () => {
15
15
[ '/ip4/1.2.3.4/tcp/1234/tls/sni/ipfs.io/http' , 'https://ipfs.io' ] ,
16
16
[ '/ip4/0.0.7.6/udp/1234' , 'udp://0.0.7.6:1234' ] ,
17
17
[ '/ip6/::/udp/0' , 'udp://[::]:0' ] ,
18
+ [ '/dns/a.com/tcp/1234' , 'http://a.com:1234' ] ,
19
+ [ '/dns/a.com' , 'a.com' ] ,
18
20
[ '/dnsaddr/ipfs.io' , 'ipfs.io' ] ,
19
21
[ '/dns4/ipfs.io' , 'ipfs.io' ] ,
20
22
[ '/dns4/libp2p.io' , 'libp2p.io' ] ,
You can’t perform that action at this time.
0 commit comments