From 226004da949fb7303e8f4e3bd88ee1d9a376f396 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 7 Mar 2023 16:43:10 +0100 Subject: [PATCH] Ignore lo0 in all cases. Fixes #237. --- RNS/Interfaces/AutoInterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RNS/Interfaces/AutoInterface.py b/RNS/Interfaces/AutoInterface.py index ed76304..13c7122 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -44,6 +44,7 @@ class AutoInterface(Interface): PEERING_TIMEOUT = 7.5 + ALL_IGNORE_IFS = ["lo0"] DARWIN_IGNORE_IFS = ["awdl0", "llw0", "lo0", "en5"] ANDROID_IGNORE_IFS = ["dummy0", "lo", "tun0"] @@ -156,6 +157,8 @@ class AutoInterface(Interface): RNS.log(str(self)+" skipping Android system interface "+str(ifname), RNS.LOG_EXTREME) elif ifname in self.ignored_interfaces: RNS.log(str(self)+" ignoring disallowed interface "+str(ifname), RNS.LOG_EXTREME) + elif ifname in AutoInterface.ALL_IGNORE_IFS: + RNS.log(str(self)+" skipping interface "+str(ifname), RNS.LOG_EXTREME) else: if len(self.allowed_interfaces) > 0 and not ifname in self.allowed_interfaces: RNS.log(str(self)+" ignoring interface "+str(ifname)+" since it was not allowed", RNS.LOG_EXTREME)