bugfix: port config in config file not work (#132)

* Update main.go

* update

* Update main.go

fix lint
This commit is contained in:
Calm Zhu
2024-02-01 02:37:50 +08:00
committed by GitHub
parent d3371ed64c
commit de975f758f

View File

@@ -76,8 +76,8 @@ func main() {
// if config file is found it will be merged with the current config struct
if err := c.LoadFile(configFile); err != nil {
log.Println(cli.BgRed, "config", cli.Reset, "no config file found")
log.Println(cli.BgRed, "config", cli.Reset, err)
}
server.RunBlocking(host, port, frontend, localDatabasePath)
server.RunBlocking(c.Host, c.Port, frontend, localDatabasePath)
}