mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-12-12 18:36:07 +00:00
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;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user