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