From 99a1aa4d27e333e2ce0f83dc5160112dc733d0e5 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sun, 7 Jan 2018 08:01:38 -0600 Subject: [PATCH] feat: rename /dns to /dnsaddr to conform with go implementation (#50) --- src/protocols-table.js | 2 +- test/index.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols-table.js b/src/protocols-table.js index b7815cf8..595049cd 100644 --- a/src/protocols-table.js +++ b/src/protocols-table.js @@ -30,7 +30,7 @@ Protocols.table = [ [17, 16, 'udp'], [33, 16, 'dccp'], [41, 128, 'ip6'], - [53, V, 'dns', 'resolvable'], + [53, V, 'dnsaddr', 'resolvable'], [54, V, 'dns4', 'resolvable'], [55, V, 'dns6', 'resolvable'], [132, 16, 'sctp'], diff --git a/test/index.spec.js b/test/index.spec.js index 936b55d1..e2e617b6 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -564,7 +564,7 @@ describe('helpers', () => { describe('resolvable multiaddrs', () => { describe('.isName', () => { it('valid name dns', () => { - const str = '/dns/ipfs.io' + const str = '/dnsaddr/ipfs.io' const addr = multiaddr(str) expect(multiaddr.isName(addr)).to.equal(true) })