summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index 07d4b67..3f8cad8 100644
--- a/main.go
+++ b/main.go
@@ -2,6 +2,7 @@ package main
import (
"flag"
+ "fmt"
"log"
"net/http"
@@ -20,5 +21,7 @@ func main() {
}
mux := routes.Handlers(c)
- log.Fatal(http.ListenAndServe(":5555", mux))
+ addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port)
+ log.Println("starting server on", addr)
+ log.Fatal(http.ListenAndServe(addr, mux))
}