From e7620e951d35f57f67cbbb79e6535cfb24a8ffe1 Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Sun, 7 Nov 2021 09:58:37 +0100 Subject: [PATCH] cmd/stdiscosrv: use strconv.Itoa --- cmd/stdiscosrv/apisrv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stdiscosrv/apisrv.go b/cmd/stdiscosrv/apisrv.go index f3fcedb95..3c9b5b3ab 100644 --- a/cmd/stdiscosrv/apisrv.go +++ b/cmd/stdiscosrv/apisrv.go @@ -419,7 +419,7 @@ func fixupAddresses(remote *net.TCPAddr, addresses []string) []string { // If zero port was specified, use remote port. if port == "0" && remote.Port > 0 { - port = fmt.Sprintf("%d", remote.Port) + port = strconv.Itoa(remote.Port) } }