Reworked port uint16-to-string conversion

This commit is contained in:
Seednode 2023-08-13 18:07:45 -05:00
parent 6678d0af36
commit 9b250416d9
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import (
)
const (
Version string = "0.57.0"
Version string = "0.57.1"
)
var (

View File

@ -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,