From 3890772bd66c356a3fbd6636ac3273d4c13778a7 Mon Sep 17 00:00:00 2001 From: tanjing2020 Date: Fri, 23 Apr 2021 09:33:56 +0800 Subject: [PATCH] no_proxy inherits the system settings to adapt to some special scenarios --- hack/lib/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/init.sh b/hack/lib/init.sh index 6c601b5662b..738b7aa98d7 100755 --- a/hack/lib/init.sh +++ b/hack/lib/init.sh @@ -41,7 +41,7 @@ KUBE_RSYNC_COMPRESS="${KUBE_RSYNC_COMPRESS:-0}" # Set no_proxy for localhost if behind a proxy, otherwise, # the connections to localhost in scripts will time out -export no_proxy=127.0.0.1,localhost +export no_proxy="127.0.0.1,localhost${no_proxy:+,${no_proxy}}" # This is a symlink to binaries for "this platform", e.g. build tools. export THIS_PLATFORM_BIN="${KUBE_ROOT}/_output/bin"