diff options
| author | Jan Wolff <janw@mailbox.org> | 2025-09-15 18:29:49 +0200 |
|---|---|---|
| committer | Jan Wolff <janw@mailbox.org> | 2025-09-15 18:29:49 +0200 |
| commit | dc78e94ea9a49af338a72a91ef7c344f0cef3894 (patch) | |
| tree | 8306ee5ee5413b378a8e14f97f4a19556324416d /main.go | |
| parent | 96765ec3b16714f47322814738a217111fdadb4b (diff) | |
actually listen on configured address
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) } |
