diff --git a/src/sakia/core/net/network.py b/src/sakia/core/net/network.py index eec21ff4c601e49a2b2bdd31b16904ec70ef8644..bdf53c8ee264b120787711bd92c1aadd848f8dd7 100644 --- a/src/sakia/core/net/network.py +++ b/src/sakia/core/net/network.py @@ -270,14 +270,14 @@ class Network(QObject): def _check_nodes_unique(self): """ - Check that all nodes are unique by them pubkeys + Check that all nodes are unique by they endpoints """ - pubkeys = set() + endpoints = set() unique_nodes = [] for n in self.nodes: - if n.pubkey not in pubkeys: + if n.endpoint not in endpoints: unique_nodes.append(n) - pubkeys.add(n.pubkey) + endpoints.add(n.endpoint) self._nodes = unique_nodes