mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-13 21:27:00 +02:00
Add dup blacklist message
This commit is contained in:
parent
10a9ae496a
commit
4d0e8d129b
@ -975,6 +975,7 @@ sub process_interface( $$ ) {
|
|||||||
$options{arp_ignore} = 1;
|
$options{arp_ignore} = 1;
|
||||||
}
|
}
|
||||||
} elsif ( $option eq 'blacklist' ) {
|
} elsif ( $option eq 'blacklist' ) {
|
||||||
|
fatal_error "Duplicate blacklist option" if $options{blacklist};
|
||||||
$value = BL_IN unless ( defined $value && $value ne '' );
|
$value = BL_IN unless ( defined $value && $value ne '' );
|
||||||
fatal_error "Invalid 'blacklist' value ( $value )" unless $value =~ /^[12]$/;
|
fatal_error "Invalid 'blacklist' value ( $value )" unless $value =~ /^[12]$/;
|
||||||
$options{blacklist} = $value;
|
$options{blacklist} = $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user