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

move some functions from go-sockaddr here, remove go-sockaddr dependency #22

Merged
merged 1 commit into from
Jan 15, 2022

Conversation

marten-seemann
Copy link
Contributor

@marten-seemann marten-seemann commented Jan 15, 2022

As far as I can tell, go-netroute is the only package in our stack using go-sockaddr, and it's only doing so for a few function calls on Windows.

If we move these functions (less than 150 LOC) here, we can deprecate go-sockaddr, moving us one tiny step forward in our repo consolidation effort.

Also replace itod and dtoi (https://github.com/libp2p/go-sockaddr/blob/5fafa0f91376612e1e57921afe72602c9b8b3431/net/net.go#L316-L350) with their standard library equivalents.

Copy link

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

one less repo! yay!

@marten-seemann marten-seemann force-pushed the remove-sockaddr-dependency branch from 60674d6 to a626e45 Compare January 15, 2022 15:49
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