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