mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-25 18:40:17 -04:00
Skip local shared instance interfaces in ingress/egress control
This commit is contained in:
parent
6bc0481cdf
commit
5b4117dadc
1 changed files with 2 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue