fix: allowIP not passed to configui
continuous-integration/drone/tag Build is passing Details

feat/muzan v0.1.4
Evan Chen 2021-10-25 13:21:36 +08:00
parent 9814f61015
commit c027d486c1
1 changed files with 10 additions and 2 deletions

View File

@ -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{