mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-06 08:20:11 +00:00
Compare commits
2 Commits
6b4d4da455
...
6551eeb938
Author | SHA1 | Date | |
---|---|---|---|
6551eeb938 | |||
36c23c1e4f |
12
main.go
12
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user