summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 366af16..187635d 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -716,7 +716,7 @@ function filter_nat_rules_generate() {
update_filter_reload_status("Creating outbound rules (opt{$i})");
$optcfg = $config['interfaces']['opt' . $i];
- if ((isset ($optcfg['enable'])) && (!$optcfg['bridge']) && (interface_has_gateway("$opt_interface"))) {
+ if ((isset ($optcfg['enable'])) && (!$optcfg['bridge']) && (!interface_has_gateway("opt{$i}"))) {
$optsa = gen_subnet($optcfg['ipaddr'], $optcfg['subnet']);
/* create outbound nat entries for primary wan */
OpenPOWER on IntegriCloud