* Mentionned the VERBOSE variable in fwknopd.conf.

* Made sure the -v command line switch overrides the value of the
  VERBOSE variable set in an fwknopd.conf file.
This commit is contained in:
Franck Joncourt 2013-06-25 22:04:54 +02:00
parent 4525a7e57c
commit 5413d1c48c
2 changed files with 9 additions and 6 deletions

View File

@ -685,11 +685,6 @@ config_init(fko_srv_options_t *opts, int argc, char **argv)
clean_exit(opts, NO_FW_CLEANUP, EXIT_SUCCESS);
break;
/* Verbosity level */
case 'v':
opts->verbose++;
break;
/* Look for configuration file arg.
*/
case 'c':
@ -871,8 +866,9 @@ config_init(fko_srv_options_t *opts, int argc, char **argv)
case 'S':
opts->status = 1;
break;
/* Verbosity level - handled previously */
/* Verbosity level */
case 'v':
opts->verbose++;
break;
case 'V':
fprintf(stdout, "fwknopd server %s\n", MY_VERSION);

View File

@ -26,6 +26,13 @@
##############################################################################
#
#
# Define the default verbosity level the fwknop server should use.
# A value of "0" is the default verbosity level. Setting it up to "1" or
# higher will allow debugging messges be displayed.
#
#VERBOSE 0;
# Define the ethernet interface on which we will sniff packets.
# Default if not set is eth0. The '-i <intf>' command line option overrides
# the PCAP_INTF setting.