Unset this variable used in the loop to avoid having wrong information

This commit is contained in:
Ermal 2013-11-07 19:35:30 +00:00
parent a00acb4c9f
commit 892d23bc7a

View File

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