nghttpx: Fix crash on http2/client proxy mode

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-30 23:45:43 +09:00
parent d22ced77c0
commit 2aa8d9642c
1 changed files with 1 additions and 0 deletions

View File

@ -2377,6 +2377,7 @@ int main(int argc, char **argv) {
std::vector<DownstreamAddrGroup>().swap(
mod_config()->downstream_addr_groups);
// maybe not necessary?
mod_config()->router = Router();
mod_config()->router.add_route(catch_all.pattern.get(), 1,
get_config()->downstream_addr_groups.size());
mod_config()->downstream_addr_groups.push_back(std::move(catch_all));