mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-16 12:27:51 -04:00
cmd/stdiscosrv: use strconv.Itoa
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user