Suppress duplicate option when not KLUDGEFREE

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-17 07:35:37 -07:00
parent 44c8ef2ede
commit 2b7e5dd9d8

View File

@ -735,7 +735,7 @@ sub set_rule_option( $$$ ) {
push @{$ruleref->{$option}}, ( reftype $value ? @$value : $value );
} else {
$ruleref->{$option} = join(' ', $value1, $value );
$ruleref->{$option} = join(' ', $value1, $value ) unless $value1 eq $value;
}
} elsif ( $opttype == EXCLUSIVE ) {
$ruleref->{$option} .= ",$value";