Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ip validations to ip addr formats #60

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

zcstarr
Copy link
Contributor

@zcstarr zcstarr commented Mar 23, 2018

The PR here addresses ip validation issue with ip based js multiaddr #58.
The existing behavior translates invalid ip addresses to valid ip addresses, and throws on some invalid ip addresses, but not all.

This patch includes ip-address package which is already apart of js-libp2p-switch to validate ip addresses prior to translating them to and from String to Buffer.

@vmx vmx requested a review from daviddias March 26, 2018 09:55
@vmx
Copy link
Member

vmx commented Mar 26, 2018

It looks good to me. Though @diasdavid can you please also have a look, I don't feel like knowing enough about js-multiaddr to merge this myself.

Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to me as well

@daviddias
Copy link
Member

Thank you @zcstarr :)

@daviddias daviddias merged commit 70c138b into multiformats:master Apr 3, 2018
@daviddias
Copy link
Member

Given that #61 was merged before the endeavor was completed, I'll now wait for @fsdiogo to give me the greenlight to release the next version of multiaddr.

dryajov pushed a commit to dryajov/js-multiaddr that referenced this pull request Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants