Sfoglia il codice sorgente

gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty object instead of empty list when there are no neighbours on an interface

Matthias Schiffer 8 anni fa
parent
commit
2fefdeee63

+ 1 - 1
package/gluon-mesh-batman-adv-core/files/lib/gluon/announce/neighbours.d/wifi

@@ -32,7 +32,7 @@ end
 
 local wifi = {}
 for address, iface in pairs(interfaces()) do
-  wifi[address] = { neighbours = neighbours(iface) }
+  wifi[address] = { [{}] = true, neighbours = neighbours(iface) }
 end
 
 if next(wifi) then