mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-30 03:46:52 -05:00
Use canonical Transport interface list add/removes. Improved announce cache cleaning. Adjusted logging.
This commit is contained in:
parent
d5b64a4af3
commit
e7a317f0a0
10 changed files with 44 additions and 39 deletions
|
|
@ -375,7 +375,7 @@ class RNodeMultiInterface(Interface):
|
|||
interface.mode = self.mode
|
||||
interface.HW_MTU = self.HW_MTU
|
||||
interface.detected = True
|
||||
RNS.Transport.interfaces.append(interface)
|
||||
RNS.Transport.add_interface(interface)
|
||||
RNS.log("Spawned new RNode subinterface: "+str(interface), RNS.LOG_VERBOSE)
|
||||
|
||||
self.clients += 1
|
||||
|
|
@ -909,8 +909,7 @@ class RNodeMultiInterface(Interface):
|
|||
def teardown_subinterfaces(self):
|
||||
for interface in self.subinterfaces:
|
||||
if interface != 0:
|
||||
if interface in RNS.Transport.interfaces:
|
||||
RNS.Transport.interfaces.remove(interface)
|
||||
RNS.Transport.remove_interface(interface)
|
||||
self.subinterfaces[interface.index] = 0
|
||||
|
||||
def should_ingress_limit(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue