From de975f758f0310b7188fa69bcb6fb58585a35392 Mon Sep 17 00:00:00 2001 From: Calm Zhu <10286576+calmzhu@users.noreply.github.com> Date: Thu, 1 Feb 2024 02:37:50 +0800 Subject: [PATCH] bugfix: port config in config file not work (#132) * Update main.go * update * Update main.go fix lint --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b9978a6..47da465 100644 --- a/main.go +++ b/main.go @@ -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) }