summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 2567e34..03d6f4d 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -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);
OpenPOWER on IntegriCloud