nghttpx: Erase wildcard patterns with http2 proxy enabled

This commit is contained in:
Tatsuhiro Tsujikawa 2016-06-09 23:32:27 +09:00
parent d36afb7cdb
commit 38f4f50e93
1 changed files with 1 additions and 0 deletions

View File

@ -2825,6 +2825,7 @@ int configure_downstream_group(Config *config, bool http2_proxy,
std::move(std::begin(g.addrs), std::end(g.addrs), std::move(std::begin(g.addrs), std::end(g.addrs),
std::back_inserter(catch_all.addrs)); std::back_inserter(catch_all.addrs));
} }
std::vector<WildcardPattern>().swap(downstreamconf.wildcard_patterns);
std::vector<DownstreamAddrGroupConfig>().swap(addr_groups); std::vector<DownstreamAddrGroupConfig>().swap(addr_groups);
// maybe not necessary? // maybe not necessary?
router = Router(); router = Router();