mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
setup: also respect -host
This commit is contained in:
parent
36c23c1e4f
commit
6551eeb938
7
main.go
7
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user