Skip to content

Commit

Permalink
Merge pull request #2585 from davxy/master
Browse files Browse the repository at this point in the history
Show the network interface with highest priority (aka lower metric)
  • Loading branch information
Alexays authored Oct 21, 2023
2 parents 06f4028 + 6829ed1 commit dbb887b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dbb887b

Please sign in to comment.