mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: don't bind RTMGRP_IPV(4|6)_ROUTE
This commit is contained in:
parent
0ad9a03d3d
commit
7fac483530
@ -56,8 +56,7 @@ void waybar::modules::Network::createInfoSocket()
|
|||||||
throw std::runtime_error("Can't connect network socket");
|
throw std::runtime_error("Can't connect network socket");
|
||||||
}
|
}
|
||||||
sa.nl_family = AF_NETLINK;
|
sa.nl_family = AF_NETLINK;
|
||||||
sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV4_ROUTE
|
sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR;
|
||||||
| RTMGRP_IPV6_IFADDR | RTMGRP_IPV6_ROUTE;
|
|
||||||
auto ret = bind(info_sock_, (struct sockaddr *)&sa, sizeof(sa));
|
auto ret = bind(info_sock_, (struct sockaddr *)&sa, sizeof(sa));
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
throw std::runtime_error("Can't add membership");
|
throw std::runtime_error("Can't add membership");
|
||||||
|
Loading…
Reference in New Issue
Block a user