fix for remote host ports
This commit is contained in:
parent
51f9e9a776
commit
3e9138e05a
@ -16,7 +16,7 @@ builds:
|
|||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: binary
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of uname.
|
# this name template makes the OS and Arch compatible with the results of uname.
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}
|
{{ .ProjectName }}
|
||||||
|
@ -33,6 +33,7 @@ cmd-configs:
|
|||||||
notifications:
|
notifications:
|
||||||
- matrix
|
- matrix
|
||||||
name: backup-some-server
|
name: backup-some-server
|
||||||
|
cron: "0 0 1 * * *"
|
||||||
hostname:
|
hostname:
|
||||||
name: hostname
|
name: hostname
|
||||||
order:
|
order:
|
||||||
|
@ -209,6 +209,9 @@ func (remoteHost *Host) GetPort() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (remoteHost *Host) CombineHostNameWithPort() {
|
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)
|
remoteHost.HostName = fmt.Sprintf("%s:%v", remoteHost.HostName, remoteHost.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user