Skip to content

Commit

Permalink
Revert "ckb-network: don not remove onion hidden service addr from pu…
Browse files Browse the repository at this point in the history
…blic_addrs"

This reverts commit 8f58f26.
  • Loading branch information
eval-exec committed Feb 18, 2025
1 parent 8f58f26 commit 71e82ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,7 @@ impl ServiceHandle for EventHandler {
debug!("DialerError({}) {}", address, error);
}
}
if address.to_string().starts_with("/onion3/") {
// don't remove onion addr from public_addrs
} else {
public_addrs.remove(&address);
}
public_addrs.remove(&address);
self.network_state.dial_failed(&address);
}
ServiceError::ProtocolError {
Expand Down

0 comments on commit 71e82ea

Please sign in to comment.