From c027d486c1f26eb209ca24393e343e03179a0de3 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 25 Oct 2021 13:21:36 +0800 Subject: [PATCH] fix: allowIP not passed to configui --- cmd/configui/main.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cmd/configui/main.go b/cmd/configui/main.go index 83bd0c3..9e95f6c 100644 --- a/cmd/configui/main.go +++ b/cmd/configui/main.go @@ -93,9 +93,17 @@ func main() { } } - cui.LogPath = flagLogFile cui.ConfigPath = flagConfigPath - cui.NoReconfig = flagNoReconfig + + if flagNoReconfig { + cui.NoReconfig = flagNoReconfig + } + if flagLogFile != "" { + cui.LogPath = flagLogFile + } + if flagAllow != "" { + cui.AllowIP = flagAllow + } // setup routes server := &http.Server{