From 9b250416d9f9d71c944d373038b9d8e92c9a4296 Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 13 Aug 2023 18:07:45 -0500 Subject: [PATCH] Reworked port uint16-to-string conversion --- cmd/root.go | 2 +- cmd/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a103b6e..84d4a21 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - Version string = "0.57.0" + Version string = "0.57.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 08182a8..2f8049c 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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,