Enabled ingress limiting on per-peer AutoInterface sub-interfaces
Some checks failed
Build Reticulum / test (push) Has been cancelled
Build Reticulum / package (push) Has been cancelled
Build Reticulum / release (push) Has been cancelled

This commit is contained in:
Mark Qvist 2025-12-02 21:24:43 +01:00
parent 3d8c6c3839
commit 72c1995551

View file

@ -538,16 +538,12 @@ class AutoInterface(Interface):
def process_outgoing(self,data): def process_outgoing(self,data):
pass pass
# Until per-device sub-interfacing is implemented, # Ingress limiting happens on peer sub-interfaces
# ingress limiting should be disabled on AutoInterface def should_ingress_limit(self): return False
def should_ingress_limit(self):
return False
def detach(self): def detach(self): self.online = False
self.online = False
def __str__(self): def __str__(self): return f"AutoInterface[{self.name}]"
return "AutoInterface["+self.name+"]"
class AutoInterfacePeer(Interface): class AutoInterfacePeer(Interface):
@ -618,9 +614,8 @@ class AutoInterfacePeer(Interface):
if self in RNS.Transport.interfaces: RNS.Transport.interfaces.remove(self) if self in RNS.Transport.interfaces: RNS.Transport.interfaces.remove(self)
# Until per-device sub-interfacing is implemented, # Ingress-limit announces per discovered peer
# ingress limiting should be disabled on AutoInterface def should_ingress_limit(self): return True
def should_ingress_limit(self): return False
class AutoInterfaceHandler(socketserver.BaseRequestHandler): class AutoInterfaceHandler(socketserver.BaseRequestHandler):
def __init__(self, callback, *args, **keys): def __init__(self, callback, *args, **keys):