cmd/stdiscosrv: use strconv.Itoa

This commit is contained in:
greatroar 2021-11-07 09:58:37 +01:00 committed by Jakob Borg
parent 286a25ae49
commit e7620e951d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}