luci-app-pbr: bugfix
authorStan Grishin <redacted>
Wed, 25 Mar 2026 00:41:29 +0000 (00:41 +0000)
committerStan Grishin <redacted>
Fri, 27 Mar 2026 08:42:39 +0000 (01:42 -0700)
* fix: allow explicitly supported interfaces as targets in policies

Signed-off-by: Stan Grishin <redacted>
applications/luci-app-pbr/root/usr/libexec/rpcd/luci.pbr

index 66ccd4dac7f9e9b63a4ec13bf8bddc6c9f285e87..f50c9d8e5b8983ca034ccff037b86d96c6d2d600 100755 (executable)
@@ -194,7 +194,7 @@ get_supported_interfaces() {
        config_foreach _build_ifaces_supported 'interface'
        is_tor_running && ifacesSupported="$ifacesSupported tor"
        for i in $supported_interface; do
-               is_xray "$i" && ifacesSupported="$ifacesSupported $i"
+               str_contains_word "$ifacesSupported" "$i" || ifacesSupported="${ifacesSupported}${i} "
        done
        [ "${webui_show_ignore_target:-0}" -eq '1' ] && ifacesSupported="$ifacesSupported ignore"
        json_init
git clone https://git.99rst.org/PROJECT