diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-10 20:54:20 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-10 20:54:20 +0000 |
commit | 19757916c126a1ebae697287cb3aa6d1e014d8b9 (patch) | |
tree | bbaae6b5e87b40dfa77a55be051bcfdf7518800e /etc | |
parent | 7ec341cbc3e4cff4999332c9db44deef533f15b3 (diff) | |
download | pfsense-19757916c126a1ebae697287cb3aa6d1e014d8b9.zip pfsense-19757916c126a1ebae697287cb3aa6d1e014d8b9.tar.gz |
Ticket #14. Implement an advanced option to allow disabling autogenerated reply-to. Submitted-by: Dan Swartzendruber
Diffstat (limited to 'etc')
-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 e7c49e2..7b8d11d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1413,7 +1413,7 @@ function filter_generate_user_rule($rule) { update_filter_reload_status("Setting up pass/block rules {$rule['descr']}"); /* do not process reply-to for gateway'd rules */ - if($rule['gateway'] == "" && interface_has_gateway($rule['interface'])) { + if($rule['gateway'] == "" && interface_has_gateway($rule['interface']) && !isset($rule['disablereplyto'])) { $rg = get_interface_gateway($rule['interface']); if(is_ipaddr($rg)) { $aline['reply'] = "reply-to ( {$ifcfg['if']} {$rg} ) "; |