Different interfaces have different index

This commit is contained in:
Davide Galassi 2023-10-20 08:25:28 +02:00
parent 871f9a1269
commit 6829ed1bb4
No known key found for this signature in database
GPG Key ID: 1072DA289B21507F
1 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
checking route id
**/
if (!is_del_event &&
((net->ifid_ == -1) || (priority < net->route_priority) || (net->ifid_ != temp_idx))) {
((net->ifid_ == -1) || (priority < net->route_priority))) {
// Clear if's state for the case were there is a higher priority
// route on a different interface.
net->clearIface();