Skip to content

Commit

Permalink
Do not connect to self from TestNetworkManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 authored and AndrejMitrovic committed Jun 28, 2019
1 parent 381fce0 commit 53cda47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/agora/test/Base.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class TestNetworkManager : NetworkManager
public this (NodeConfig config, in string[] peers)
{
super(config, peers);
// NetworkManager assumes IP are used but we use pubkey
this.banned_addresses.put(config.key_pair.address.toString());
}

///
Expand Down

0 comments on commit 53cda47

Please sign in to comment.