mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 22:58:52 +01:00
Add INLINE_MATCHES=Yes to deprecated option list
- Issue a warning for each line requiring change. Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2e4af68b98
commit
91c76f7559
@ -709,8 +709,8 @@ our %validlevels; # Valid log levels.
|
||||
#
|
||||
# Deprecated options with their default values
|
||||
#
|
||||
our %deprecated = (
|
||||
LEGACY_RESTART => 'no'
|
||||
our %deprecated = ( LEGACY_RESTART => 'no' ,
|
||||
INLINE_MATCHES => 'no' ,
|
||||
);
|
||||
#
|
||||
# Deprecated options that are eliminated via update
|
||||
@ -835,7 +835,7 @@ sub initialize( $;$$$) {
|
||||
TC_SCRIPT => '',
|
||||
EXPORT => 0,
|
||||
KLUDGEFREE => '',
|
||||
VERSION => "5.1.12-Beta2",
|
||||
VERSION => "5.1.12",
|
||||
CAPVERSION => 50112 ,
|
||||
BLACKLIST_LOG_TAG => '',
|
||||
RELATED_LOG_TAG => '',
|
||||
@ -2439,6 +2439,8 @@ sub split_line2( $$;$$$ ) {
|
||||
if ( $inlinematches ) {
|
||||
fatal_error "The $description does not support inline matches (INLINE_MATCHES=Yes)" unless $inline;
|
||||
|
||||
warning_message "This entry needs to be changed before the INLINE_MATCHES option is removed in Shorewall 5.2";
|
||||
|
||||
$inline_matches = $pairs;
|
||||
|
||||
if ( $columns =~ /^(\s*|.*[^&@%])\{(.*)\}\s*$/ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user