summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2025-09-15 18:29:49 +0200
committerJan Wolff <janw@mailbox.org>2025-09-15 18:29:49 +0200
commitdc78e94ea9a49af338a72a91ef7c344f0cef3894 (patch)
tree8306ee5ee5413b378a8e14f97f4a19556324416d /main.go
parent96765ec3b16714f47322814738a217111fdadb4b (diff)
actually listen on configured address
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
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))
}