summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-16 22:53:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-16 22:53:54 +0000
commit667c1238db4983a61d1e7d77bb1889a6afe4d613 (patch)
treeef7c25d4ea4e415be7e548bf3fcb5ae7a0fca636 /etc/inc
parent092ac49dfce3de9e7b33a3c2c52fa5f43b2a3159 (diff)
downloadpfsense-667c1238db4983a61d1e7d77bb1889a6afe4d613.zip
pfsense-667c1238db4983a61d1e7d77bb1889a6afe4d613.tar.gz
Only assign reply-to if both interface and a gateway is defined
Diffstat (limited to 'etc/inc')
-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 974f40c..ce627c4 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1350,7 +1350,7 @@ EOD;
$line .= "on \$" . $interface . " ";
}
- if($rule['returngateway'] <> "") {
+ if($rule['returngateway'] <> "" and $rule['returninterface']) {
$return_interface = filter_translate_type_to_real_interface($rule['returninterface']);
$line .= "reply-to (" . $return_interface . " " . $rule['returngateway'] . ") ";
}
OpenPOWER on IntegriCloud