Skip to content

Commit

Permalink
netdeploy: add port to PublicAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Jun 28, 2024
1 parent 524865b commit 2e10580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netdeploy/remote/nodecfg/nodeDir.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ func (nd *nodeDir) configurePublicAddress(publicAddress bool) error {
return errors.New("publicAddress is only valid for relay nodes")
}

networkHostName := nd.configurator.getNetworkHostName()
nd.config.PublicAddress = networkHostName
if nd.NetAddress[0] == ':' {
networkHostName := nd.configurator.getNetworkHostName() + nd.NetAddress
nd.config.PublicAddress = networkHostName
}

return nil
}
Expand Down

0 comments on commit 2e10580

Please sign in to comment.