From 4affd9c98636e6c83aad4f0e7859a29f66898b72 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 17 Mar 2014 13:45:45 +0100 Subject: [PATCH] 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 --- src/openvpn/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]) { -- 2.47.2