From b68070c84f054dfd7f866e6127d4956238303111 Mon Sep 17 00:00:00 2001 From: Florian Eich Date: Sun, 29 Nov 2020 20:57:32 +0100 Subject: [PATCH] Add mask for avahi duplicate interfaces --- bumblebee_status/modules/core/nic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/modules/core/nic.py b/bumblebee_status/modules/core/nic.py index 41607d9..7eb7fd6 100644 --- a/bumblebee_status/modules/core/nic.py +++ b/bumblebee_status/modules/core/nic.py @@ -93,7 +93,8 @@ class Module(core.module.Module): def _update_widgets(self, widgets): self.clear_widgets() interfaces = [ - i for i in netifaces.interfaces() if not i.startswith(self._exclude) + i for i in netifaces.interfaces() + if not i.startswith(self._exclude) and ":" not in i ] interfaces.extend([i for i in netifaces.interfaces() if i in self._include])