1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

setup: respect -p/-port

fixes #128.
This commit is contained in:
Harvey Tindall 2021-07-21 17:17:59 +01:00
parent 6b4d4da455
commit 36c23c1e4f
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -519,7 +519,12 @@ func start(asDaemon, firstCall bool) {
}
} else {
debugMode = false
address = "0.0.0.0:8056"
if *PORT != app.port && *PORT > 0 {
app.port = *PORT
} else {
app.port = 8056
}
address = fmt.Sprintf("0.0.0.0:%d", app.port)
app.storage.lang.SetupPath = "setup"
err := app.storage.loadLangSetup(langFS)
if err != nil {