Skip to content

Commit

Permalink
ckb-network: don not remove onion hidden service addr from public_addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Feb 17, 2025
1 parent ca95177 commit f2dab20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,11 @@ impl ServiceHandle for EventHandler {
debug!("DialerError({}) {}", address, error);
}
}
public_addrs.remove(&address);
if address.to_string().starts_with("/onion3/") {
// don't remove onion addr from public_addrs
} else {
public_addrs.remove(&address);
}
self.network_state.dial_failed(&address);
}
ServiceError::ProtocolError {
Expand Down

0 comments on commit f2dab20

Please sign in to comment.