nghttpx: Fix unexpected failure due to missing address family

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-06 23:28:04 +09:00
parent ee07694783
commit 024d0d09ee
1 changed files with 4 additions and 1 deletions

View File

@ -1991,9 +1991,12 @@ void process_options(
auto &downstreamconf = mod_config()->conn.downstream;
if (listenerconf.addrs.empty()) {
FrontendAddr addr;
FrontendAddr addr{};
addr.host = "*";
addr.port = 3000;
addr.family = AF_INET;
listenerconf.addrs.push_back(addr);
addr.family = AF_INET6;
listenerconf.addrs.push_back(std::move(addr));
}