We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096e92d commit fc031eaCopy full SHA for fc031ea
iroh/src/magicsock/node_map/node_state.rs
@@ -791,10 +791,11 @@ impl NodeState {
791
792
// if the endpoint does not yet have a best_addrr
793
let needs_ping_back = if matches!(path, SendAddr::Udp(_))
794
- && matches!(
+ && (matches!(
795
self.udp_paths.best_addr.state(now),
796
best_addr::State::Empty | best_addr::State::Outdated(_)
797
- ) {
+ ) || matches!(role, PingRole::NewPath))
798
+ {
799
// We also need to send a ping to make this path available to us as well. This
800
// is always sent together with a pong. So in the worst case the pong gets lost
801
// and this ping does not. In that case we ping-pong until both sides have
0 commit comments