fix batman interfaces
This commit is contained in:
parent
1a38b5b101
commit
b6072a3b48
|
@ -23,7 +23,10 @@ func NewBatman(iface string) *Batman {
|
||||||
log.WithField("iface", iface).Error("not able to run batctl")
|
log.WithField("iface", iface).Error("not able to run batctl")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
b := &Batman{Bridge: iface}
|
b := &Batman{
|
||||||
|
Bridge: iface,
|
||||||
|
Interfaces: []string{iface},
|
||||||
|
}
|
||||||
for _, line := range strings.Split(string(out), "\n") {
|
for _, line := range strings.Split(string(out), "\n") {
|
||||||
i := strings.Split(line, ":")[0]
|
i := strings.Split(line, ":")[0]
|
||||||
if i != "" {
|
if i != "" {
|
||||||
|
|
Loading…
Reference in New Issue