Append host if arguments are specified for ping input (#5450)
This commit is contained in:
@@ -193,7 +193,7 @@ func hostPinger(binary string, timeout float64, args ...string) (string, error)
|
||||
// args returns the arguments for the 'ping' executable
|
||||
func (p *Ping) args(url string, system string) []string {
|
||||
if len(p.Arguments) > 0 {
|
||||
return p.Arguments
|
||||
return append(p.Arguments, url)
|
||||
}
|
||||
|
||||
// build the ping command args based on toml config
|
||||
|
||||
Reference in New Issue
Block a user