Traffic counting

This commit is contained in:
Mark Qvist 2026-11-14 02:14:38 +01:00
parent 350b7e2614
commit c850cdac6c
No known key found for this signature in database
2 changed files with 9 additions and 7 deletions

View file

@ -308,7 +308,7 @@ class Interface:
RNS.log("Releasing held announce packet "+str(selected_announce_packet)+" from "+str(self), RNS.LOG_EXTREME)
self.ic_held_release = time.time() + self.ic_held_release_interval
self.held_announces.pop(selected_announce_packet.destination_hash)
def release(): RNS.Transport.inbound(selected_announce_packet.raw, selected_announce_packet.receiving_interface, tc=RNS.Transport.TC_INGRESS_LIMITED, ifac_handled=True)
def release(): RNS.Transport.inbound(selected_announce_packet.raw, selected_announce_packet.receiving_interface, tc=RNS.Transport.TC_INGRESS_LIMITED, ifac_handled=True, no_accounting=True)
threading.Thread(target=release, daemon=True).start()
except Exception as e: