Skip to content

Commit

Permalink
specify public ip
Browse files Browse the repository at this point in the history
  • Loading branch information
n0cte authored and ramilexe committed Apr 26, 2023
1 parent 79b4d49 commit 7f2ff5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chain/avalanche/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,15 @@ func (n *AvalancheNode) CreateContainer(ctx context.Context) error {
echo '%s' > /home/heighliner/genesis.json;
echo '%s' > /home/heighliner/tls.cert;
echo '%s' > /home/heighliner/tls.key;
/bin/avalanchego --http-host="0.0.0.0" --data-dir="/home/heighliner/ava" --public-ip="0.0.0.0" --network-id="%s"\
/bin/avalanchego --http-host="0.0.0.0" --data-dir="/home/heighliner/ava" --public-ip="%s" --network-id="%s"\
--genesis="/home/heighliner/genesis.json"\
--staking-tls-cert-file="/home/heighliner/tls.cert"\
--staking-tls-key-file="/home/heighliner/tls.key"
`,
genesis,
n.options.Credentials.TLSCert,
n.options.Credentials.TLSKey,
n.options.PublicIP,
n.options.ChainID,
))
} else {
Expand All @@ -304,7 +305,7 @@ func (n *AvalancheNode) CreateContainer(ctx context.Context) error {
echo '%s' > /home/heighliner/genesis.json;
echo '%s' > /home/heighliner/tls.cert;
echo '%s' > /home/heighliner/tls.key;
/bin/avalanchego --http-host="0.0.0.0" --data-dir="/home/heighliner/ava" --public-ip="0.0.0.0" --network-id="%s"\
/bin/avalanchego --http-host="0.0.0.0" --data-dir="/home/heighliner/ava" --public-ip="%s" --network-id="%s"\
--genesis=/home/heighliner/genesis.json\
--staking-tls-cert-file="/home/heighliner/tls.cert"\
--staking-tls-key-file="/home/heighliner/tls.key"\
Expand All @@ -314,6 +315,7 @@ func (n *AvalancheNode) CreateContainer(ctx context.Context) error {
genesis,
n.options.Credentials.TLSCert,
n.options.Credentials.TLSKey,
n.options.PublicIP,
n.options.ChainID,
bootstrapIps,
bootstrapIds,
Expand Down

0 comments on commit 7f2ff5a

Please sign in to comment.