mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-09 04:36:05 +10:00
Fix source address ping flag on BSD (#6056)
(cherry picked from commit 234a946093)
This commit is contained in:
@@ -234,7 +234,7 @@ func (p *Ping) args(url string, system string) []string {
|
||||
case "darwin":
|
||||
args = append(args, "-I", p.Interface)
|
||||
case "freebsd", "netbsd", "openbsd":
|
||||
args = append(args, "-s", p.Interface)
|
||||
args = append(args, "-S", p.Interface)
|
||||
case "linux":
|
||||
args = append(args, "-I", p.Interface)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user