diff --git a/src/shrpx.cc b/src/shrpx.cc index 4a0d3365..68c2c493 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -2377,6 +2377,7 @@ int main(int argc, char **argv) { std::vector().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));