Browse code

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 <gert@greenie.muc.de>
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 <gert@greenie.muc.de>

Arne Schwabe authored on 2014/03/17 21:45:45
Showing 1 changed files
... ...
@@ -5227,8 +5227,10 @@ add_option (struct options *options,
5227 5227
     }
5228 5228
   else if (streq (p[0], "max-routes"))
5229 5229
     {
5230
-      msg (msglevel, "--max-routes option ignored. The number of routes is unlimited as of version 2.4. "
5231
-           "This option will be removed in a future version, please remove it from your configuration.");
5230
+      msg (M_WARN, "DEPRECATED OPTION: --max-routes option ignored."
5231
+	   "The number of routes is unlimited as of version 2.4. "
5232
+	   "This option will be removed in a future version, "
5233
+	   "please remove it from your configuration.");
5232 5234
     }
5233 5235
   else if (streq (p[0], "route-gateway") && p[1])
5234 5236
     {