format typo fixed
This commit is contained in:
parent
3c1e1f1182
commit
da3a9230db
|
@ -5,12 +5,12 @@ package ping
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"regexp"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"regexp"
|
|
||||||
|
|
||||||
"github.com/influxdata/telegraf"
|
"github.com/influxdata/telegraf"
|
||||||
"github.com/influxdata/telegraf/internal"
|
"github.com/influxdata/telegraf/internal"
|
||||||
|
@ -160,8 +160,10 @@ func (p *Ping) args(url string) []string {
|
||||||
}
|
}
|
||||||
args = append(args, url)
|
args = append(args, url)
|
||||||
switch p.IPVersion {
|
switch p.IPVersion {
|
||||||
case 4: args = append(args, "-4")
|
case 4:
|
||||||
case 6: args = append(args, "-6")
|
args = append(args, "-4")
|
||||||
|
case 6:
|
||||||
|
args = append(args, "-6")
|
||||||
}
|
}
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
Loading…
Reference in New Issue