fixed web port

This commit is contained in:
Hendrik Schlehlein 2019-01-31 19:37:04 +01:00
parent d7d3732fab
commit 470370aebd

View file

@ -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))
}