Warn when RESTORE_DEFAULT_ROUTE=Yes and a persistent provider is defined

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-10-11 10:58:09 -07:00
parent b47e633c38
commit 39a3c72057
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -602,6 +602,7 @@ sub process_a_provider( $ ) {
} elsif ( $option eq 'nohostroute' ) {
$hostroute = 0;
} elsif ( $option eq 'persistent' ) {
warning_message "When RESTOE_DEFAULT_ROUTE=Yes, the 'persistent' option may not work as expected" if $config{RESTORE_DEFAULT_ROUTE};
$persistent = 1;
} else {
fatal_error "Invalid option ($option)";