diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-04-13 03:30:30 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-04-13 03:30:30 +0000 |
commit | b16cd4d28cdf9bf16fdbe892b82b88f467088509 (patch) | |
tree | d0dcb3e5e843f3ce8b2b39871094c3aaa777bce9 /options.c | |
parent | Allow "management-client" directive to be used (diff) | |
download | openvpn-b16cd4d28cdf9bf16fdbe892b82b88f467088509.tar.xz |
Added errors-to-stderr option. When enabled, fatal errors
that result in the termination of the daemon will be written
to stderr.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4131 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2669,7 +2669,7 @@ auth_retry_print (void) static void usage (void) { - FILE *fp = msg_fp(); + FILE *fp = msg_fp(0); #ifdef ENABLE_SMALL @@ -3859,6 +3859,11 @@ add_option (struct options *options, VERIFY_PERMISSION (OPT_P_MESSAGES); options->mute = positive_atoi (p[1]); } + else if (streq (p[0], "errors-to-stderr")) + { + VERIFY_PERMISSION (OPT_P_MESSAGES); + errors_to_stderr(); + } else if (streq (p[0], "status") && p[1]) { VERIFY_PERMISSION (OPT_P_GENERAL); |