allows private addresses if not public network (#20178)

(cherry picked from commit c4f2e5f88c)

# Conflicts:
#	net/net.sh

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
This commit is contained in:
mergify[bot]
2021-09-25 21:34:24 +00:00
committed by GitHub
parent e50a26a493
commit 8d2dce6f6b
2 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ loadConfigFile() {
entrypointIp=${validatorIpList[0]}
else
entrypointIp=${validatorIpListPrivate[0]}
maybeAllowPrivateAddr='--allow-private-addr'
fi
buildSshOptions

View File

@ -910,6 +910,8 @@ while [[ -n $1 ]]; do
extraPrimordialStakes=$2
shift 2
elif [[ $1 = --allow-private-addr ]]; then
# May also be added by loadConfigFile if 'gce.sh create' was invoked
# without -P.
maybeAllowPrivateAddr="$1"
shift 1
elif [[ $1 = --accounts-db-skip-shrink ]]; then