From 0517fe2c1dccff8f15c2101624780614e88bfe78 Mon Sep 17 00:00:00 2001 From: xilabao Date: Wed, 7 Dec 2016 18:12:14 +0800 Subject: [PATCH] fix set advertise address in local cluster --- hack/local-up-cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 5ea25d217cd..1facd756a53 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -431,10 +431,10 @@ function start_apiserver { runtime_config="--runtime-config=${RUNTIME_CONFIG}" fi - # Let the API server pick a default address when API_HOST + # Let the API server pick a default address when API_HOST_IP # is set to 127.0.0.1 advertise_address="" - if [[ "${API_HOST}" != "127.0.0.1" ]]; then + if [[ "${API_HOST_IP}" != "127.0.0.1" ]]; then advertise_address="--advertise_address=${API_HOST_IP}" fi