setup: also respect -host

This commit is contained in:
Harvey Tindall 2021-07-21 17:24:06 +01:00
parent 36c23c1e4f
commit 6551eeb938
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 6 additions and 1 deletions

View File

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