From 6d5fcf571b3d88fa0dc5ae5064d5682c7a80469b Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Nov 2013 19:35:30 +0000 Subject: Unset this variable used in the loop to avoid having wrong information --- etc/inc/filter.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a727184..cabc3d6 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -3412,6 +3412,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); -- cgit v1.1