summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c411aea..123014c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1348,8 +1348,11 @@ function generate_user_filter_rule($rule, $ngcounter) {
if(file_exists("/tmp/{$rule['if']}_router"))
$rg = file_get_contents("/tmp/{$rule['if']}_router");
- if($rg <> "" and $ri <> "" and stristr($rule['interface'],"opt") == true) {
- $line .= "reply-to (" . $ri . " " . $rg . ") ";
+ /* do not process reply-to for gateway'd rules */
+ if($rule['gateway'] == "") {
+ if($rg <> "" and $ri <> "" and stristr($rule['interface'],"opt") == true) {
+ $line .= "reply-to (" . $ri . " " . $rg . ") ";
+ }
}
/* if user has selected a custom gateway, lets work with it */
OpenPOWER on IntegriCloud