From: Camille Guérin Date: Wed, 29 Dec 2021 10:29:24 +0000 (+0100) Subject: Removed error message for an option flag not supported with --server-ipv6 X-Git-Tag: v2.6_beta1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c8128ad56e5ee1912166218ee36a2f0fe5b5c2;p=thirdparty%2Fopenvpn.git Removed error message for an option flag not supported with --server-ipv6 Signed-off-by: Camille Guerin Closes: OpenVPN/openvpn#164 Acked-by: Frank Lichtenheld Message-Id: <20211229102924.8901-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23471.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 0529c1417..bf8e77590 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -6822,7 +6822,7 @@ add_option(struct options *options, } } } - else if (streq(p[0], "server-ipv6") && p[1] && !p[3]) + else if (streq(p[0], "server-ipv6") && p[1] && !p[2]) { const int lev = M_WARN; struct in6_addr network; @@ -6845,12 +6845,6 @@ add_option(struct options *options, options->server_ipv6_defined = true; options->server_network_ipv6 = network; options->server_netbits_ipv6 = netbits; - - if (p[2]) /* no "nopool" options or similar for IPv6 */ - { - msg(msglevel, "error parsing --server-ipv6: %s is not a recognized flag", p[3]); - goto err; - } } else if (streq(p[0], "server-bridge") && p[1] && p[2] && p[3] && p[4] && !p[5]) {