feat: ipv6 family

pull/319/head
Alex 2019-05-16 12:22:08 +02:00
parent 31416ffae6
commit 0a14e7f3ab
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ waybar::modules::Network::Network(const std::string &id, const Json::Value &conf
: ALabel(config, "{ifname}", 60),
ifid_(-1),
last_ext_iface_(-1),
family_(AF_INET),
family_(config["family"] == "ipv6" ? AF_INET6 : AF_INET),
efd_(-1),
ev_fd_(-1),
cidr_(-1),