fix for remote host ports

master v0.2.1
Andrew 1 year ago
parent 3e9138e05a
commit 02321870b5

@ -209,7 +209,8 @@ func (remoteHost *Host) GetPort() {
}
func (remoteHost *Host) CombineHostNameWithPort() {
if remoteHost.HostName == fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port) {
port := fmt.Sprintf(":%v", remoteHost.Port)
if strings.Contains(remoteHost.HostName, port) {
return
}
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)

Loading…
Cancel
Save