Fix source address ping flag on BSD (#6056)
This commit is contained in:
parent
fae63ed297
commit
234a946093
|
@ -234,7 +234,7 @@ func (p *Ping) args(url string, system string) []string {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
args = append(args, "-I", p.Interface)
|
args = append(args, "-I", p.Interface)
|
||||||
case "freebsd", "netbsd", "openbsd":
|
case "freebsd", "netbsd", "openbsd":
|
||||||
args = append(args, "-s", p.Interface)
|
args = append(args, "-S", p.Interface)
|
||||||
case "linux":
|
case "linux":
|
||||||
args = append(args, "-I", p.Interface)
|
args = append(args, "-I", p.Interface)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue