From: Stan Grishin Date: Wed, 25 Mar 2026 00:41:29 +0000 (+0000) Subject: luci-app-pbr: bugfix X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e41b7c1d61f310284514dede3061292ecf2b1b8b;p=openwrt-luci.git luci-app-pbr: bugfix * fix: allow explicitly supported interfaces as targets in policies Signed-off-by: Stan Grishin --- diff --git a/applications/luci-app-pbr/root/usr/libexec/rpcd/luci.pbr b/applications/luci-app-pbr/root/usr/libexec/rpcd/luci.pbr index 66ccd4dac7..f50c9d8e5b 100755 --- a/applications/luci-app-pbr/root/usr/libexec/rpcd/luci.pbr +++ b/applications/luci-app-pbr/root/usr/libexec/rpcd/luci.pbr @@ -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