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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -62,5 +63,5 @@ func main() {
|
||||||
http.StripPrefix("/static", http.FileServer(http.Dir("./static"))).ServeHTTP(w, r)
|
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