diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-16 22:53:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-16 22:53:54 +0000 |
commit | 667c1238db4983a61d1e7d77bb1889a6afe4d613 (patch) | |
tree | ef7c25d4ea4e415be7e548bf3fcb5ae7a0fca636 /etc/inc | |
parent | 092ac49dfce3de9e7b33a3c2c52fa5f43b2a3159 (diff) | |
download | pfsense-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.inc | 2 |
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'] . ") "; } |