mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-08-04 15:18:04 +00:00
Cleanup
This commit is contained in:
parent
0a6f76e41b
commit
c99ec922aa
1 changed files with 6 additions and 12 deletions
|
|
@ -3071,25 +3071,19 @@ class Transport:
|
|||
def from_local_client(packet):
|
||||
if hasattr(packet.receiving_interface, "parent_interface"):
|
||||
return Transport.is_local_client_interface(packet.receiving_interface)
|
||||
else:
|
||||
return False
|
||||
else: return False
|
||||
|
||||
@staticmethod
|
||||
def is_local_client_interface(interface):
|
||||
if hasattr(interface, "parent_interface"):
|
||||
if hasattr(interface.parent_interface, "is_local_shared_instance"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
else:
|
||||
return False
|
||||
if hasattr(interface.parent_interface, "is_local_shared_instance"): return True
|
||||
else: return False
|
||||
else: return False
|
||||
|
||||
@staticmethod
|
||||
def interface_to_shared_instance(interface):
|
||||
if hasattr(interface, "is_connected_to_shared_instance"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
if hasattr(interface, "is_connected_to_shared_instance"): return True
|
||||
else: return False
|
||||
|
||||
@staticmethod
|
||||
def detach_interfaces():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue