From: Arne Schwabe Date: Mon, 17 Mar 2014 12:45:45 +0000 (+0100) Subject: Fix warning for max-routes: do not quit when parsing an old configuration. Format... X-Git-Tag: v2.4_alpha1~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4affd9c98636e6c83aad4f0e7859a29f66898b72;p=thirdparty%2Fopenvpn.git Fix warning for max-routes: do not quit when parsing an old configuration. Format the message to be more like the other deprecated options Acked-by: Gert Doering Message-Id: <1395060345-30870-1-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/8354 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 34cb64244..c4d9e5123 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -5227,8 +5227,10 @@ add_option (struct options *options, } else if (streq (p[0], "max-routes")) { - msg (msglevel, "--max-routes option ignored. The number of routes is unlimited as of version 2.4. " - "This option will be removed in a future version, please remove it from your configuration."); + msg (M_WARN, "DEPRECATED OPTION: --max-routes option ignored." + "The number of routes is unlimited as of version 2.4. " + "This option will be removed in a future version, " + "please remove it from your configuration."); } else if (streq (p[0], "route-gateway") && p[1]) {