diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-03-17 13:45:45 +0100 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2014-03-17 19:35:35 +0100 |
commit | 4affd9c98636e6c83aad4f0e7859a29f66898b72 (patch) | |
tree | 0b91f9f4da9bcfdcc2c1c37407d3910ada396d74 /src/openvpn/options.c | |
parent | 087b510365d9aad8f656a8fb0cc07d51511be9d0 (diff) | |
download | openvpn-4affd9c98636e6c83aad4f0e7859a29f66898b72.tar.gz openvpn-4affd9c98636e6c83aad4f0e7859a29f66898b72.tar.xz openvpn-4affd9c98636e6c83aad4f0e7859a29f66898b72.zip |
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>
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r-- | src/openvpn/options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 34cb642..c4d9e51 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]) { |