diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-29 16:30:18 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-29 16:30:18 -0700 |
commit | fdabef2a27fefc94e4c1890c67000ee1fec27fac (patch) | |
tree | 6c03e3636dc21e7bd1af1b1efd10f32d064ac991 | |
parent | fd24993fe4b913cc0bcd10fd74bd323a965d633c (diff) | |
download | vyatta-wanloadbalance-fdabef2a27fefc94e4c1890c67000ee1fec27fac.tar.gz vyatta-wanloadbalance-fdabef2a27fefc94e4c1890c67000ee1fec27fac.zip |
fix in jenner for 4672--inbound interface is now excluded from output table rules
-rw-r--r-- | src/lbdecision.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc index d4ea102..d6ef18e 100644 --- a/src/lbdecision.cc +++ b/src/lbdecision.cc @@ -452,8 +452,13 @@ LBDecision::get_application_cmd(LBRule &rule, bool local) { string filter; - if (rule._in_iface.empty() == false && local == false) { - filter += "-i " + rule._in_iface + " "; + if (rule._in_iface.empty() == false) { + if (local == true) { + filter += " ! -o " + rule._in_iface + " "; + } + else { + filter += "-i " + rule._in_iface + " "; + } } if (rule._proto.empty() == false) { |