Fixes client mac obfuscation. Node to node links stay untouched now.

alfred-data
Andreas Baldeau 2014-01-31 21:50:09 +01:00
parent 634b37fee2
commit cd743ff46c
1 changed files with 6 additions and 0 deletions

View File

@ -232,6 +232,12 @@ class NodeDB:
try: try:
node_source = self.maybe_node_by_fuzzy_mac(ids) node_source = self.maybe_node_by_fuzzy_mac(ids)
node_target = self.maybe_node_by_id(idt) node_target = self.maybe_node_by_id(idt)
if not node_source.flags['client'] and not node_target.flags['client']:
# if none of the nodes associated with this link are clients,
# we do not want to obscure
continue
if ids in clientIds and idt in clientIds: if ids in clientIds and idt in clientIds:
# This is for corner cases, when a client # This is for corner cases, when a client
# is linked to another client. # is linked to another client.