This is an automated email from the ASF dual-hosted git repository.

mhamann pushed a commit to branch dns-resolution-fix
in repository https://gitbox.apache.org/repos/asf/openwhisk-apigateway.git

commit 4a8fe71f01497354db774cfa1325801db5aea3bc
Author: Matt Hamann <matthew.ham...@gmail.com>
AuthorDate: Tue Nov 5 16:11:12 2019 -0500

    Disable ipv6 during DNS resolution
---
 init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.sh b/init.sh
index 6fcc7a4..2579e62 100755
--- a/init.sh
+++ b/init.sh
@@ -55,7 +55,7 @@ api-gateway-config-supervisor \
     --sync-cmd="${sync_cmd}" \
     --http-addr=127.0.0.1:8888 &
 
-echo resolver $(awk 'BEGIN{ORS=" "} /^nameserver/{print $2}' /etc/resolv.conf 
| sed "s/ $/;/g") > /etc/api-gateway/conf.d/includes/resolvers.conf
+echo resolver $(awk 'BEGIN{ORS=" "} /^nameserver/{print $2}' /etc/resolv.conf 
| sed "s/ $/ ipv6=off;/g") > /etc/api-gateway/conf.d/includes/resolvers.conf
 echo "   ...  with dns $(cat /etc/api-gateway/conf.d/includes/resolvers.conf)"
 
 echo "   ... testing configuration "

Reply via email to