Skip to content

Commit

Permalink
feat: rename /dns to /dnsaddr to conform with go implementation (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and daviddias committed Jan 7, 2018
1 parent f6b52a1 commit 99a1aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/protocols-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 99a1aa4

Please sign in to comment.