1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2025-01-06 08:20:11 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
6551eeb938
setup: also respect -host 2021-07-21 17:24:06 +01:00
36c23c1e4f
setup: respect -p/-port
fixes #128.
2021-07-21 17:17:59 +01:00

12
main.go
View File

@ -519,7 +519,17 @@ 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
}
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 {