mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-10 05:26:50 +03:00
refactor: rename 'iface' to 'source_network_interfaces'
This commit is contained in:
@@ -82,7 +82,7 @@ function createSettingsContent(section) {
|
|||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
widgets.DeviceSelect,
|
widgets.DeviceSelect,
|
||||||
'iface',
|
'source_network_interfaces',
|
||||||
_('Source Network Interface'),
|
_('Source Network Interface'),
|
||||||
_('Select the network interface from which the traffic will originate'),
|
_('Select the network interface from which the traffic will originate'),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -252,10 +252,10 @@ route_table_rule_mark() {
|
|||||||
nft_init_interfaces_set() {
|
nft_init_interfaces_set() {
|
||||||
nft_create_ifname_set "$NFT_TABLE_NAME" "$NFT_INTERFACE_SET_NAME"
|
nft_create_ifname_set "$NFT_TABLE_NAME" "$NFT_INTERFACE_SET_NAME"
|
||||||
|
|
||||||
local interface_list
|
local source_network_interfaces
|
||||||
config_get interface_list "settings" "iface" "br-lan"
|
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 }"
|
nft add element inet "$NFT_TABLE_NAME" "$NFT_INTERFACE_SET_NAME" "{ $interface }"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user