fix for remote host ports
This commit is contained in:
1 parent
3e9138e05a
commit
61796fbaee
1 file changed
+2
-1
+2
-1
@@ -209,7 +209,8 @@ func (remoteHost *Host) GetPort() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (remoteHost *Host) CombineHostNameWithPort() {
|
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
|
return
|
||||||
}
|
}
|
||||||
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
|
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
|
||||||
|
|||||||
Reference in new issue
Block a user