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
If my understanding of the code is correct, only the first successfully dialed address will be returned.
This is problematic in case of multiple addresses though:
out of multiple public addresses only the first one will be confirmed
mix of public and private addresses doesn't seem to play very nicely with this either
I think the solution here is that either sender of the probe or receiver should shuffle addresses such that we check different addresses.
I'm not very familiar with autonat right now to understand if it is architecturally supposed to support this use case at all since confirmations will be done for different addresses in different calls.
The text was updated successfully, but these errors were encountered:
Right now autonat sends concatenation of
other_addresses
andlisten_addresses
, which are always processed in the same order by receiving side:rust-libp2p/protocols/autonat/src/behaviour/as_client.rs
Lines 188 to 206 in caf9da4
If my understanding of the code is correct, only the first successfully dialed address will be returned.
This is problematic in case of multiple addresses though:
I think the solution here is that either sender of the probe or receiver should shuffle addresses such that we check different addresses.
I'm not very familiar with autonat right now to understand if it is architecturally supposed to support this use case at all since confirmations will be done for different addresses in different calls.
The text was updated successfully, but these errors were encountered: