updated to call dump_access_list() if -D was given to dump config information
git-svn-id: file:///home/mbr/svn/fwknop/trunk@202 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
parent
e8b875789b
commit
903f5f466c
@ -61,14 +61,6 @@ main(int argc, char **argv)
|
||||
|
||||
/* Process any options that do their thing and exit. */
|
||||
|
||||
/* Show config and exit dump config was wanted.
|
||||
*/
|
||||
if(opts.dump_config == 1)
|
||||
{
|
||||
dump_config(&opts);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/* Kill the currently running fwknopd?
|
||||
*/
|
||||
if(opts.kill == 1)
|
||||
@ -169,6 +161,16 @@ main(int argc, char **argv)
|
||||
*/
|
||||
parse_access_file(&opts);
|
||||
|
||||
/* Show config (including access.conf vars) and exit dump config was
|
||||
* wanted.
|
||||
*/
|
||||
if(opts.dump_config == 1)
|
||||
{
|
||||
dump_config(&opts);
|
||||
dump_access_list(&opts);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/* If we are a new process (just being started), proceed with normal
|
||||
* startp. Otherwise, we are here as a result of a signal sent to an
|
||||
* existing process and we want to restart.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user