diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2,7 +2,6 @@ package main import ( "flag" - "fmt" "log" "net/http" @@ -30,7 +29,5 @@ func main() { } mux := routes.Handlers(c) - addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) - log.Println("starting server on", addr) - log.Fatal(http.ListenAndServe(addr, mux)) + log.Fatal(http.ListenAndServe(c.Server.Addr, mux)) } |