forked from Cliffbreak/tsviewer
fixed web port
This commit is contained in:
parent
d7d3732fab
commit
470370aebd
1 changed files with 2 additions and 1 deletions
3
main.go
3
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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue