Skip to content

fix host can be dialed by autonat public addr, but lost the public addr to announce#983

Merged
willscott merged 2 commits intolibp2p:masterfrom
sandmanhome:feat/fix-host-lost-AutoNat-PublicAddr
Jul 24, 2020
Merged

fix host can be dialed by autonat public addr, but lost the public addr to announce#983
willscott merged 2 commits intolibp2p:masterfrom
sandmanhome:feat/fix-host-lost-AutoNat-PublicAddr

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