allows private addresses if not public network
This commit is contained in:
		@@ -69,6 +69,7 @@ loadConfigFile() {
 | 
				
			|||||||
    entrypointIp=${validatorIpList[0]}
 | 
					    entrypointIp=${validatorIpList[0]}
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    entrypointIp=${validatorIpListPrivate[0]}
 | 
					    entrypointIp=${validatorIpListPrivate[0]}
 | 
				
			||||||
 | 
					    maybeAllowPrivateAddr='--allow-private-addr'
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  buildSshOptions
 | 
					  buildSshOptions
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -901,6 +901,8 @@ while [[ -n $1 ]]; do
 | 
				
			|||||||
      extraPrimordialStakes=$2
 | 
					      extraPrimordialStakes=$2
 | 
				
			||||||
      shift 2
 | 
					      shift 2
 | 
				
			||||||
    elif [[ $1 = --allow-private-addr ]]; then
 | 
					    elif [[ $1 = --allow-private-addr ]]; then
 | 
				
			||||||
 | 
					      # May also be added by loadConfigFile if 'gce.sh create' was invoked
 | 
				
			||||||
 | 
					      # without -P.
 | 
				
			||||||
      maybeAllowPrivateAddr="$1"
 | 
					      maybeAllowPrivateAddr="$1"
 | 
				
			||||||
      shift 1
 | 
					      shift 1
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user