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")
|
||||
return nil
|
||||
}
|
||||
b := &Batman{Bridge: iface}
|
||||
b := &Batman{
|
||||
Bridge: iface,
|
||||
Interfaces: []string{iface},
|
||||
}
|
||||
for _, line := range strings.Split(string(out), "\n") {
|
||||
i := strings.Split(line, ":")[0]
|
||||
if i != "" {
|
||||
|
|
Loading…
Reference in New Issue