From 7fac48353046a6ed71bd7f96f2b67d83ca7949ff Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 31 Mar 2019 16:32:51 +0200 Subject: [PATCH] fix: don't bind RTMGRP_IPV(4|6)_ROUTE --- src/modules/network.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 93a0d3fa..9e0c1268 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -56,8 +56,7 @@ void waybar::modules::Network::createInfoSocket() throw std::runtime_error("Can't connect network socket"); } sa.nl_family = AF_NETLINK; - sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV4_ROUTE - | RTMGRP_IPV6_IFADDR | RTMGRP_IPV6_ROUTE; + sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR; auto ret = bind(info_sock_, (struct sockaddr *)&sa, sizeof(sa)); if (ret < 0) { throw std::runtime_error("Can't add membership");