mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(network): no need to check family here
This commit is contained in:
parent
9c8e39c30c
commit
c916fe258e
@ -546,8 +546,7 @@ int waybar::modules::Network::getPreferredIface(int skip_idx) const {
|
||||
ifa = ifaddr;
|
||||
ifid = -1;
|
||||
while (ifa != nullptr) {
|
||||
if (ifa->ifa_addr->sa_family == family_ &&
|
||||
wildcardMatch(config_["interface"].asString(), ifa->ifa_name)) {
|
||||
if (wildcardMatch(config_["interface"].asString(), ifa->ifa_name)) {
|
||||
ifid = if_nametoindex(ifa->ifa_name);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user