From: Richard Bonhomme Date: Thu, 24 Oct 2019 21:48:32 +0000 (+0100) Subject: Ignore --pull-filter for --mode server X-Git-Tag: v2.4.8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a90f36f69e1f41d6c61ab7e566e7e7e0ba7d71a;p=thirdparty%2Fopenvpn.git Ignore --pull-filter for --mode server OpenVPN-GUI (For Windows) currently always adds "--pull-filter" which is a fatal error when also using "--mode server" Using "--pull-filter" implicitly requires the use of "--pull". Using "--mode server" and "--pull" is a fatal error which supercedes "--pull-filter" Safely ignore "--pull-filter" for "--mode server" Trac: #1164 v2: Improve commit message, no functional changes. Signed-off-by: Richard Bonhomme Acked-by: Gert Doering Message-Id: <20191024214832.22737-1-tincanteksup@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18964.html Signed-off-by: Gert Doering (cherry picked from commit bb1ea491cd16d11b448342e8287beacae619f980) --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index f95181461..ce3649fae 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2228,7 +2228,7 @@ options_postprocess_verify_ce(const struct options *options, const struct connec } if (options->pull_filter_list) { - msg(M_USAGE, "--pull-filter cannot be used with --mode server"); + msg(M_WARN, "--pull-filter ignored for --mode server"); } if (!(proto_is_udp(ce->proto) || ce->proto == PROTO_TCP_SERVER)) {