From 6551eeb93892a3fb2cc3a408e3196d58ae9a82b2 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 21 Jul 2021 17:24:06 +0100 Subject: [PATCH] setup: also respect -host --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 21a4d96..5ac46f2 100644 --- a/main.go +++ b/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 {