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

fix: add :: to selfaddress detection #1489

Merged
merged 2 commits into from
Apr 20, 2020
Merged

fix: add :: to selfaddress detection #1489

merged 2 commits into from
Apr 20, 2020

Conversation

kilrau
Copy link
Contributor

@kilrau kilrau commented Apr 20, 2020

This adds the ipv6 version :: of 0.0.0.0 to the self address detection of xud/xucli. Stumbled upon in ExchangeUnion/xud-docker#419 (comment).

@kilrau kilrau added the P2 mid priority label Apr 20, 2020
@kilrau kilrau requested a review from sangaman April 20, 2020 13:33
@kilrau kilrau self-assigned this Apr 20, 2020
Copy link
Collaborator

@sangaman sangaman left a comment

Choose a reason for hiding this comment

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

Good catch as this was missing as the counterpart to 0.0.0.0. I think though logically speaking this should maybe be a separate check since 0.0.0.0 isn't exactly a "self" address it's a non-routable catch-all address that could technically be "advertised" by a non-self node. But for a quick fix this is good and makes sense.

@sangaman sangaman added the p2p Peer to peer networking label Apr 20, 2020
@kilrau kilrau merged commit 18aa554 into master Apr 20, 2020
@kilrau kilrau deleted the fix/all-addresses-ipv6 branch May 20, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2p Peer to peer networking P2 mid priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants