This commit is contained in:
Roberto Hidalgo 2023-01-03 22:40:39 -06:00
parent 7e5dbed4f5
commit 1af237bb2d
2 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
puerta puerta
puerta.db puerta.db
local.db
config.joao.yaml config.joao.yaml
test.db

View File

@ -55,7 +55,7 @@ var serverCommand = &command.Command{
return err return err
} }
logrus.Infof("Listening on port %d", cfg.HTTP.Listen) logrus.Infof("Listening at %s", cfg.HTTP.Listen)
return http.ListenAndServe(fmt.Sprintf("localhost:%d", cfg.HTTP.Listen), router) return http.ListenAndServe(cfg.HTTP.Listen, router)
}, },
} }