feat: ipv6 family
This commit is contained in:
parent
31416ffae6
commit
0a14e7f3ab
|
@ -5,7 +5,7 @@ waybar::modules::Network::Network(const std::string &id, const Json::Value &conf
|
||||||
: ALabel(config, "{ifname}", 60),
|
: ALabel(config, "{ifname}", 60),
|
||||||
ifid_(-1),
|
ifid_(-1),
|
||||||
last_ext_iface_(-1),
|
last_ext_iface_(-1),
|
||||||
family_(AF_INET),
|
family_(config["family"] == "ipv6" ? AF_INET6 : AF_INET),
|
||||||
efd_(-1),
|
efd_(-1),
|
||||||
ev_fd_(-1),
|
ev_fd_(-1),
|
||||||
cidr_(-1),
|
cidr_(-1),
|
||||||
|
|
Loading…
Reference in New Issue