From 2f47456668b5296e9e0c550b4f1d82b2ccd0bddb Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 27 Dec 2025 10:43:28 +0100 Subject: [PATCH] Enabled ingress limiting on per-peer Weave and Auto sub-interfaces --- RNS/Interfaces/AutoInterface.py | 8 -------- RNS/Interfaces/WeaveInterface.py | 6 ------ 2 files changed, 14 deletions(-) diff --git a/RNS/Interfaces/AutoInterface.py b/RNS/Interfaces/AutoInterface.py index f48726d..26f1637 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -580,9 +580,6 @@ class AutoInterface(Interface): def process_outgoing(self, data): pass - # Ingress limiting happens on peer sub-interfaces - def should_ingress_limit(self): return False - def detach(self): self.online = False def __str__(self): return f"AutoInterface[{self.name}]" @@ -656,11 +653,6 @@ class AutoInterfacePeer(Interface): if self in RNS.Transport.interfaces: RNS.Transport.interfaces.remove(self) - # Ingress-limit announces per discovered peer - # TODO: Disabled until potential discovery issue - # has been diagnosed - def should_ingress_limit(self): return False - class AutoInterfaceHandler(socketserver.BaseRequestHandler): def __init__(self, callback, *args, **keys): self.callback = callback diff --git a/RNS/Interfaces/WeaveInterface.py b/RNS/Interfaces/WeaveInterface.py index 67d8dbc..b416fbb 100644 --- a/RNS/Interfaces/WeaveInterface.py +++ b/RNS/Interfaces/WeaveInterface.py @@ -991,9 +991,6 @@ class WeaveInterface(Interface): def process_outgoing(self,data): pass - def should_ingress_limit(self): - return False - def detach(self): self._online = False @@ -1086,6 +1083,3 @@ class WeaveInterfacePeer(Interface): if self in RNS.Transport.interfaces: RNS.Transport.interfaces.remove(self) - - def should_ingress_limit(self): - return False \ No newline at end of file