mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-12-17 09:24:31 -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):
|
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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue