Skip to content

Commit

Permalink
public IP fallback to private IP
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Aug 21, 2024
1 parent 93b5223 commit cfce9a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subnet/deployment-generator/script/generate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VERSION_GENERATOR="v0.3.2"
VERSION_GENERATOR="v0.3.3"
VERSION_CSC="v0.1.1"
VERSION_GENESIS="v0.2.2"

Expand Down
2 changes: 1 addition & 1 deletion subnet/deployment-generator/src/config_gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
num_machines: parseInt(process.env.NUM_MACHINE),
num_subnet: parseInt(process.env.NUM_SUBNET),
ip_1: (process.env.MAIN_IP || ''),
public_ip: (process.env.PUBLIC_IP || ''),
public_ip: (process.env.PUBLIC_IP || process.env.MAIN_IP),
network_name: (process.env.NETWORK_NAME),
network_id: parseInt(process.env.NETWORK_ID || Math.floor(Math.random() * (65536 - 1) + 1)),
secret_string: (process.env.SERVICES_SECRET || crypto.randomBytes(10).toString('hex')),
Expand Down

0 comments on commit cfce9a6

Please sign in to comment.