refactor: rename 'iface' to 'source_network_interfaces'

This commit is contained in:
Andrey Petelin
2025-10-10 17:26:33 +05:00
committed by divocat
parent 687334bf8d
commit 036808917d
2 changed files with 4 additions and 4 deletions

View File

@@ -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'),
);

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
}