From 470370aebd3de3e6c97969c5d7a330c7f3ebfffe Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Thu, 31 Jan 2019 19:37:04 +0100 Subject: [PATCH] fixed web port --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b484807..d9afcef 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "html/template" "log" "net/http" @@ -62,5 +63,5 @@ func main() { http.StripPrefix("/static", http.FileServer(http.Dir("./static"))).ServeHTTP(w, r) }) - log.Fatal("Handler: ", http.ListenAndServe(config.ServerWeb.Port, router)) + log.Fatal("Handler: ", http.ListenAndServe(fmt.Sprintf(":%d", config.ServerWeb.Port), router)) }