refactor: rename 'iface' to 'source_network_interfaces'

This commit is contained in:
Andrey Petelin
2025-10-10 20:14:23 +03:00
committed by divocat
parent aa857e7f27
commit ee5954b139
2 changed files with 4 additions and 4 deletions
@@ -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'),
);
+3 -3
View File
@@ -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
}