Added link traffic stats

This commit is contained in:
Mark Qvist 2026-11-18 16:51:41 +01:00
parent 48ba76df9c
commit ef3e80868e
No known key found for this signature in database
4 changed files with 59 additions and 13 deletions

View file

@ -126,6 +126,7 @@ class Interface:
self.recursive_prs = False
self.announces_from_internal = True
self.announces_to_internal = None
self.is_local_shared_instance = False
self.parent_interface = None
self.spawned_interfaces = None
self.tunnel_id = None
@ -202,6 +203,8 @@ class Interface:
self.r_stat_snr = None
self.r_stat_q = None
self.is_connected_to_shared_instance = False
def get_hash(self):
if not self.__hash: self.__hash = RNS.Identity.full_hash(str(self).encode("utf-8"))
return self.__hash