Skip local shared instance interfaces in ingress/egress control

This commit is contained in:
Mark Qvist 2026-08-28 23:41:00 +02:00
parent 6bc0481cdf
commit 5b4117dadc
No known key found for this signature in database

View file

@ -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]