mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-12-17 01:14:21 -05:00
Enabled ingress limiting on per-peer AutoInterface sub-interfaces
This commit is contained in:
parent
3d8c6c3839
commit
72c1995551
1 changed files with 6 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue