Reworked port uint16-to-string conversion
This commit is contained in:
parent
6678d0af36
commit
9b250416d9
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version string = "0.57.0"
|
Version string = "0.57.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -1056,7 +1056,7 @@ func ServePage(args []string) error {
|
||||||
mux.GET("/version", serveVersion())
|
mux.GET("/version", serveVersion())
|
||||||
|
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Addr: net.JoinHostPort(bind, strconv.FormatInt(int64(port), 10)),
|
Addr: net.JoinHostPort(bind, strconv.Itoa(int(port))),
|
||||||
Handler: mux,
|
Handler: mux,
|
||||||
IdleTimeout: 10 * time.Minute,
|
IdleTimeout: 10 * time.Minute,
|
||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
|
|
Loading…
Reference in New Issue