mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
Skip local shared instance interfaces in ingress/egress control
This commit is contained in:
1 file changed
+2
-1
@@ -482,6 +482,7 @@ class BackboneInterface(Interface):
|
||||
|
||||
for interface in interfaces:
|
||||
if interface.detached: continue
|
||||
if isinstance(interface, RNS.Interfaces.LocalInterface.LocalClientInterface): continue
|
||||
BackboneInterface._dp_ec_evaluate(interface, now)
|
||||
|
||||
except Exception as e:
|
||||
@@ -508,7 +509,7 @@ class BackboneInterface(Interface):
|
||||
interfaces = list(BackboneInterface.spawned_interface_filenos.values())
|
||||
|
||||
if q_depth > BackboneInterface.DP_IC_MID_WM:
|
||||
producers = [iface for iface in interfaces if iface.dp_ingress_packets > 0]
|
||||
producers = [iface for iface in interfaces if iface.dp_ingress_packets > 0 and not isinstance(interface, RNS.Interfaces.LocalInterface.LocalClientInterface)]
|
||||
if producers:
|
||||
producers.sort(key=lambda p: p.dp_ingress_packets, reverse=True)
|
||||
selected = producers[0]
|
||||
|
||||
Reference in new issue
Block a user