summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <mike@ft1.vyatta.com>2009-10-02 10:13:37 -0700
committerMichael Larson <mike@ft1.vyatta.com>2009-10-02 10:13:37 -0700
commit3466b30bc459fe35b4cae8b645978688371b3032 (patch)
tree7e9cb0bdb7441531869fd42ab8ead91750b14642 /scripts
parent46d57d69bfbdfc48d291dbf4d913560d8084a4f1 (diff)
downloadvyatta-wanloadbalance-3466b30bc459fe35b4cae8b645978688371b3032.tar.gz
vyatta-wanloadbalance-3466b30bc459fe35b4cae8b645978688371b3032.zip
bug 4971 fix.
also supports additional command to disable balancing of locally sourced traffic "disable-local-traffic" Conflicts: src/lbdecision.cc
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index 57e0ae1..7e1051c 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -29,6 +29,10 @@ sub write_health {
print FILE_LCK "disable-source-nat\n";
}
+ if ($config->exists("load-balancing wan disable-local-traffic")) {
+ print FILE_LCK "disable-local-traffic\n";
+ }
+
if ($config->exists("load-balancing wan flush-connections")) {
print FILE_LCK "flush-conntrack\n";
}