Skip to content

Commit

Permalink
fix batman interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Apr 30, 2019
1 parent 6e6f781 commit e2b4a74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion respond/daemon/batman.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit e2b4a74

Please sign in to comment.