From bf72d6dbc0ad25dc76cc175af1730ac9f7c6d235 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Mon, 17 May 2021 23:38:37 -0400 Subject: [PATCH] Update zebra-network/src/peer/handshake.rs Co-authored-by: teor --- zebra-network/src/peer/handshake.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra-network/src/peer/handshake.rs b/zebra-network/src/peer/handshake.rs index 3112bcec9..99ce1f7b0 100644 --- a/zebra-network/src/peer/handshake.rs +++ b/zebra-network/src/peer/handshake.rs @@ -249,6 +249,8 @@ impl ConnectedAddr { if &canonical_remote != addr { vec![canonical_remote] } else { + // we didn't learn a new address from the handshake: + // it's the same as the outbound address, which is already in our address book Vec::new() } }