Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Fix: /dns4 multiaddr explicit tcp/port support #130

Merged
merged 1 commit into from
Nov 29, 2017
Merged

Fix: /dns4 multiaddr explicit tcp/port support #130

merged 1 commit into from
Nov 29, 2017

Conversation

Steverman
Copy link
Contributor

@Steverman Steverman commented Nov 29, 2017

Summary

This is my attempt to add explicit TCP/Port support (also my first PR ever): #129

Fixed

  • /dns4: Should work... I think. Test cases added as well.

Not fixed

  • /ip4: Should also work, but it allows implicit TCP/Port (will look at it tomorrow, out of battery :))

Haven't looked at

  • /dns6
  • /ip6

Comments

Aegir gave me problems because of WebRTC.

I'm not sure if created the test cases properly. So double check that.
Some TCP/Ports are bogus, but I don't think it's actually trying to dial them, so that's ok.

Default ports probably won't show as an explicit port by design.

Regarding /ip4, is it because of https://github.com/whyrusleeping/js-mafmt/blob/9df8d849e405ef8765e09897aba6c3c89e270572/src/index.js#L26-L34? (Just guessing)

https://github.com/whyrusleeping/js-mafmt/blob/9df8d849e405ef8765e09897aba6c3c89e270572/test/index.spec.js have a few invalid multiaddrs that is added to the "good" list (if TCP/Port must be explicit)

@daviddias
Copy link
Member

daviddias commented Nov 29, 2017

Awesome PR @Steverman. 500 bonus points for description and tests! I'll figure out the WebRTC bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants