luci-mod-status: fix crashing on IPv4 special routes#8676
Open
BadAimWeeb wants to merge 1 commit into
Open
Conversation
This comment has been minimized.
This comment has been minimized.
openwrt-ai
reviewed
Jun 4, 2026
In IPv4, if you're configuring a route as unreachable, there will be no next hop or device that is included in line, making old regex failed. IPv6 works normally before this change, as busybox will include some more stuff after route. Signed-off-by: Lê Quang Lâm <badaimweeb@protonmail.com>
10c9f54 to
1b7ca99
Compare
openwrt-ai
reviewed
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request details
Description
In IPv4, if you're configuring a route as unreachable, there will be no next hop or device that is included in line, making old regex failed.
IPv6 works normally before this change, as busybox will include some more stuff after route.
An example for parsing would be
unreachable 172.16.0.0/12.Tested on
OpenWrt version: OpenWrt 25.12.4 (r32933-4ccb782af7)
LuCI version: 26.133.20346~e9ebca7
Web browser(s): LibreWolf 151.0.2-1
Checklist
Signed-off-by: <my@email.address>row (viagit commit --signoff).<package name>: titlefirst line subject for packages.PKG_VERSIONin the Makefile.