change default port on client so it can run side by side with other clients

This commit is contained in:
Iuri Matias 2020-07-06 12:29:29 -04:00
parent 3072ec83f9
commit 6ddd95fe5a
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ proc setupAccount*(account: GeneratedAccount, password: string): types.Account =
var settingsJSON = getAccountSettings(account, constants.DEFAULT_NETWORKS, installationId)
var nodeConfig = constants.NODE_CONFIG
nodeConfig["ShhextConfig"]["InstallationID"] = newJString(installationId)
nodeConfig["ListenAddr"] = if existsEnv("STATUS_PORT"): newJString("0.0.0.0:" & $getEnv("STATUS_PORT")) else: newJString("0.0.0.0:30305")
result = saveAccountAndLogin(account, $accountData, password, $nodeConfig, $settingsJSON)