fix for remote host ports

This commit is contained in:
CyberShell committed 2023-02-12 08:29:55 -06:00
1 parent 51f9e9a776
commit 3e9138e05a
3 files changed
+5 -1

No files matched your search

+3
View File
@@ -209,6 +209,9 @@ func (remoteHost *Host) GetPort() {
}
func (remoteHost *Host) CombineHostNameWithPort() {
if remoteHost.HostName == fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port) {
return
}
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
}