From af4e262d4780fb3b4ffe65c4fd7d5cbf83f38461 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Jun 2016 23:06:17 +0900 Subject: [PATCH] nghttpx: Use AI_NUMERICSERV --- src/shrpx_config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index f1ac142e..6a9e5271 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -2891,7 +2891,7 @@ int configure_downstream_group(Config *config, bool http2_proxy, LOG(INFO) << "Catch-all pattern is group " << catch_all_group; } - auto resolve_flags = numeric_addr_only ? AI_NUMERICHOST : 0; + auto resolve_flags = numeric_addr_only ? AI_NUMERICHOST | AI_NUMERICSERV : 0; for (auto &g : addr_groups) { for (auto &addr : g.addrs) {