mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-25 18:40:13 -04:00
Cleaned up annoying node auto-add on peer trusted. What was I thinking?
This commit is contained in:
parent
c99ce2b930
commit
a686b8f3b7
1 changed files with 5 additions and 5 deletions
|
|
@ -195,11 +195,11 @@ class Directory:
|
|||
self._node_announces.insert(0, (timestamp, source_hash, app_data, "node"))
|
||||
self._clean_node_announces()
|
||||
|
||||
if self.trust_level(associated_peer) == DirectoryEntry.TRUSTED:
|
||||
existing_entry = self.find(source_hash)
|
||||
if not existing_entry:
|
||||
node_entry = DirectoryEntry(source_hash, display_name=app_data.decode("utf-8"), trust_level=DirectoryEntry.TRUSTED, hosts_node=True)
|
||||
self.remember(node_entry)
|
||||
# if self.trust_level(associated_peer) == DirectoryEntry.TRUSTED:
|
||||
# existing_entry = self.find(source_hash)
|
||||
# if not existing_entry:
|
||||
# node_entry = DirectoryEntry(source_hash, display_name=app_data.decode("utf-8"), trust_level=DirectoryEntry.TRUSTED, hosts_node=True)
|
||||
# self.remember(node_entry)
|
||||
|
||||
if hasattr(self.app.ui, "main_display"):
|
||||
self.app.ui.main_display.sub_displays.network_display.directory_change_callback()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue