From dc78e94ea9a49af338a72a91ef7c344f0cef3894 Mon Sep 17 00:00:00 2001 From: Jan Wolff Date: Mon, 15 Sep 2025 18:29:49 +0200 Subject: actually listen on configured address --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index eef401a..1a42f39 100644 --- a/main.go +++ b/main.go @@ -62,6 +62,8 @@ func main() { }) app.StartScheduler() - log.Println(fmt.Sprintf("serving on http://%s\n", "127.0.0.1:8080")) - log.Panicln(http.ListenAndServe("127.0.0.1:8080", nil)) + + host := app.Config().Http.ListenAddress + log.Println(fmt.Sprintf("serving on http://%s\n", host)) + log.Panicln(http.ListenAndServe(host, nil)) } -- cgit v1.2.3