mirror of
https://github.com/openwrt/routing.git
synced 2026-10-14 10:56:27 +04:00
7e5c48dd8596958ae9e65dfd03458a70f77d0175
get_interface_address() calls io.open() and dereferences the result without checking it. /sys/class/net does not contain interfaces only: with the bonding module loaded it also holds the plain file bonding_masters, which the `ls -1` in get_interfaces_names() returns and which has no address below it. io.open() then returns nil and the script dies with "attempt to index a nil value", so no bat-hosts data is published at all on such a node. Return nil when the file cannot be opened and skip those entries in the caller, which would otherwise index the interface table with nil. get_hostname() gets the same guard. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…
…
OpenWrt Routing Feed
Description
This OpenWrt package feed contains community maintained routing packages.
Usage
This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot – Installation on the OpenWrt support site.
This feed is enabled by default. To install all its package definitions, run:
./scripts/feeds update routing
./scripts/feeds install -a -p routing
Languages
Lua
38.9%
Shell
28.2%
Makefile
27.9%
HTML
5%