summaryrefslogtreecommitdiff
path: root/cmd/sparkled/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sparkled/main.go')
-rw-r--r--cmd/sparkled/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go
index 893f708..416cc9b 100644
--- a/cmd/sparkled/main.go
+++ b/cmd/sparkled/main.go
@@ -9,8 +9,11 @@ import (
)
func main() {
+ bindAddr := env.Fetch("BIND_ADDR", ":http")
+ log.Printf("Listening on %v\n", bindAddr)
+
log.Fatal(http.ListenAndServe(
- env.Fetch("BIND_ADDR", ":http"),
+ bindAddr,
web.NewServer(nil),
))
}