Skip to content

Commit

Permalink
Merge #437
Browse files Browse the repository at this point in the history
437: fix: RPC `local_node_info` returns duplicated addr r=jjyr a=rink1969

fix #436

Co-authored-by: rink1969 <[email protected]>
  • Loading branch information
bors[bot] and rink1969 committed Apr 10, 2019
2 parents b580f33 + 0e65c5b commit 4902e15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ impl NetworkState {
let original_listened_addresses = self.original_listened_addresses.read();
self.listened_addresses(max_urls.saturating_sub(original_listened_addresses.len()))
.into_iter()
.filter(|(addr, _)| !original_listened_addresses.contains(addr))
.chain(
original_listened_addresses
.iter()
Expand Down

0 comments on commit 4902e15

Please sign in to comment.