Fix interface option with method = native in ping input (#6667)
This commit is contained in:
parent
e8d6d445f4
commit
9f05163c53
|
@ -118,7 +118,7 @@ func (*Ping) SampleConfig() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Ping) Gather(acc telegraf.Accumulator) error {
|
func (p *Ping) Gather(acc telegraf.Accumulator) error {
|
||||||
if p.Interface != "" && p.listenAddr != "" {
|
if p.Interface != "" && p.listenAddr == "" {
|
||||||
p.listenAddr = getAddr(p.Interface)
|
p.listenAddr = getAddr(p.Interface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue