From 036808917d77f88707628019005432028b316822 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Fri, 10 Oct 2025 17:26:33 +0500 Subject: [PATCH] refactor: rename 'iface' to 'source_network_interfaces' --- .../htdocs/luci-static/resources/view/podkop/settings.js | 2 +- podkop/files/usr/bin/podkop | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js index b4b96f8..bfc5fbf 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js @@ -82,7 +82,7 @@ function createSettingsContent(section) { o = section.option( widgets.DeviceSelect, - 'iface', + 'source_network_interfaces', _('Source Network Interface'), _('Select the network interface from which the traffic will originate'), ); diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index 82f2d0e..cfeeeb9 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -252,10 +252,10 @@ route_table_rule_mark() { nft_init_interfaces_set() { nft_create_ifname_set "$NFT_TABLE_NAME" "$NFT_INTERFACE_SET_NAME" - local interface_list - config_get interface_list "settings" "iface" "br-lan" + local source_network_interfaces + config_get source_network_interfaces "settings" "source_network_interfaces" "br-lan" - for interface in $interface_list; do + for interface in $source_network_interfaces; do nft add element inet "$NFT_TABLE_NAME" "$NFT_INTERFACE_SET_NAME" "{ $interface }" done }