mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 07:08:53 +01:00
Use updated values in configuration verification
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7ec5f60571
commit
7583a5c7a3
@ -2915,13 +2915,15 @@ sub update_config_file( $ ) {
|
|||||||
#
|
#
|
||||||
# OPTION='' - use default if 'Yes' or 'No'
|
# OPTION='' - use default if 'Yes' or 'No'
|
||||||
#
|
#
|
||||||
$val = $default if $default eq 'Yes' || $default eq 'No';
|
$config{$var} = $val = $default if $default eq 'Yes' || $default eq 'No';
|
||||||
} else {
|
} else {
|
||||||
#
|
#
|
||||||
# Wasn't mentioned in old file - use default value
|
# Wasn't mentioned in old file - use default value
|
||||||
#
|
#
|
||||||
$val = $default;
|
$config{$var} = $val = $default;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unless ( $val =~ /^[-\w\/\.]*$/ ) {
|
unless ( $val =~ /^[-\w\/\.]*$/ ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user