mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Tighten editing of TC_PRIOMAP value
This commit is contained in:
parent
965ab0257f
commit
742aa95660
@ -3383,7 +3383,7 @@ sub get_configuration( $ ) {
|
||||
my @priomap = split ' ',$val;
|
||||
fatal_error "Invalid TC_PRIOMAP ($val)" unless @priomap == 16;
|
||||
for ( @priomap ) {
|
||||
fatal_error "Invalid TC_PRIOMAP entry ($_)" unless /[1-3]/;
|
||||
fatal_error "Invalid TC_PRIOMAP entry ($_)" unless /^[1-3]$/;
|
||||
$_--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user