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{