diff options
-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) { |