Fix source address ping flag on BSD (#6056)

(cherry picked from commit 234a946093)
This commit is contained in:
David Wahlund
2019-07-03 16:38:18 -07:00
committed by Daniel Nelson
parent f91de60d37
commit 5256fe0200
+1 -1
View File
@@ -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: