Make 'fallback' and 'balance' mutually exclusive

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-06-30 10:00:01 -07:00
parent ef848a559c
commit 6ff02dbaa3
3 changed files with 8 additions and 0 deletions

View File

@ -349,6 +349,8 @@ sub add_a_provider( ) {
}
}
fatal_error q(The 'balance' and 'fallback' options are mutually exclusive) if $balance && $default;
my $val = 0;
my $pref;

View File

@ -2,6 +2,8 @@ Changes in Shorewall 4.4.21 Final
1) Correct code generated by TPROXY.
2) Make 'fallback' and 'balance' mutually exclusive.
Changes in Shorewall 4.4.21 RC 1
1) Fix empty parameter lists in _DEFAULT settings.

View File

@ -38,6 +38,10 @@ VI. PROBLEMS CORRECTED AND NEW FEATURES IN PRIOR RELEASES
ERROR: iptables-restore Failed. Input is in
/var/lib/shorewall/.iptables-restore-input
4) The 'balance' and 'fallback' options in /etc/shorewall/providers
have always been mutually exclusive but the compiler previously
didn't enforce that restriction. Now it does.
----------------------------------------------------------------------------
I I. K N O W N P R O B L E M S R E M A I N I N G
----------------------------------------------------------------------------