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 host can be dialed by autonat public addr, but lost the public addr to announce #983

Merged

Conversation

sandmanhome
Copy link
Contributor

Consider the following scenario:

peers deployed on a cloud server, which may provides an elastic ip accessible to the public network, but not have an external network card, so net.InterfaceAddrs() can't get the public ip (call by InterfaceMultiaddrs for get addresses associated with host)

The host can indeed be dialed by autonat public addr, but lost the public addr to announce!

Copy link
Contributor

@willscott willscott left a comment

Choose a reason for hiding this comment

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

👍

@willscott
Copy link
Contributor

cc @aschmahmann - not sure if this changes the assumptions for 'local addresses' that the downstream kad-dht is expecting, but this seems like a place to percolate up autonat discovered address that had been missed.

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.

2 participants