summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-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 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);
OpenPOWER on IntegriCloud