You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 11, 2022. It is now read-only.
The issue is that the host's existing connections are not checked for AutoNAT support.
My specific issue arose when I was trying to have my relay hosts also provide AutoNAT service. Because I was bootstrapping my relay hosts into the local peer's DHT, the peer already had connections to them by the time the AutoNAT service was initialized. This meant that the list of AutoNAT peers never included the relay hosts and, thus, NAT status could not be determined.
It would seem that, at a minimum, it would be good to allow the AutoNAT to be bootstrapped with its own list of peers (this list of bootstrap peers would probably need to be provided to EnableAutoRelay). Although ideally, it would be better for the AutoNAT service to query existing connections from the host when it starts.
The text was updated successfully, but these errors were encountered:
We are in the process of adding a static list of relay peers that can be used instead of discovery in libp2p/go-libp2p#705.
We also want to add passive discovery whereby relays can also be discovered by connecting to them, as reported by the circuit subsystem.
The AutoNAT service contains a mapping of ID to AddrInfo, but this mapping is only updated when the host reports a new connection.
The issue is that the host's existing connections are not checked for AutoNAT support.
My specific issue arose when I was trying to have my relay hosts also provide AutoNAT service. Because I was bootstrapping my relay hosts into the local peer's DHT, the peer already had connections to them by the time the AutoNAT service was initialized. This meant that the list of AutoNAT peers never included the relay hosts and, thus, NAT status could not be determined.
It would seem that, at a minimum, it would be good to allow the AutoNAT to be bootstrapped with its own list of peers (this list of bootstrap peers would probably need to be provided to
EnableAutoRelay
). Although ideally, it would be better for the AutoNAT service to query existing connections from the host when it starts.The text was updated successfully, but these errors were encountered: