Skip to content

Commit

Permalink
allows private addresses if not public network
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Aug 11, 2021
1 parent 1a372a7 commit c4f2e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/common.sh
Expand Up @@ -69,6 +69,7 @@ loadConfigFile() {
entrypointIp=${validatorIpList[0]}
else
entrypointIp=${validatorIpListPrivate[0]}
maybeAllowPrivateAddr='--allow-private-addr'
fi

buildSshOptions
Expand Down
2 changes: 2 additions & 0 deletions net/net.sh
Expand Up @@ -901,6 +901,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
else
Expand Down

0 comments on commit c4f2e5f

Please sign in to comment.