nghttpx: Fix unexpected failure due to missing address family
This commit is contained in:
parent
ee07694783
commit
024d0d09ee
|
@ -1991,9 +1991,12 @@ void process_options(
|
||||||
auto &downstreamconf = mod_config()->conn.downstream;
|
auto &downstreamconf = mod_config()->conn.downstream;
|
||||||
|
|
||||||
if (listenerconf.addrs.empty()) {
|
if (listenerconf.addrs.empty()) {
|
||||||
FrontendAddr addr;
|
FrontendAddr addr{};
|
||||||
addr.host = "*";
|
addr.host = "*";
|
||||||
addr.port = 3000;
|
addr.port = 3000;
|
||||||
|
addr.family = AF_INET;
|
||||||
|
listenerconf.addrs.push_back(addr);
|
||||||
|
addr.family = AF_INET6;
|
||||||
listenerconf.addrs.push_back(std::move(addr));
|
listenerconf.addrs.push_back(std::move(addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue