mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unset this variable used in the loop to avoid having wrong information
This commit is contained in:
parent
a00acb4c9f
commit
892d23bc7a
@ -3403,6 +3403,8 @@ function filter_generate_ipsec_rules() {
|
||||
$ipfrules .= "# Could not locate interface for IPsec: {$descr}\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
unset($gateway);
|
||||
/* add endpoint routes to correct gateway on interface */
|
||||
if((is_ipaddrv4($rgip)) && (interface_has_gateway($parentinterface))) {
|
||||
$gateway = get_interface_gateway($parentinterface);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user