mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-09 15:18:12 +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;
|
my @priomap = split ' ',$val;
|
||||||
fatal_error "Invalid TC_PRIOMAP ($val)" unless @priomap == 16;
|
fatal_error "Invalid TC_PRIOMAP ($val)" unless @priomap == 16;
|
||||||
for ( @priomap ) {
|
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