From: Selva Nair <selva.n...@gmail.com> Eliminate the confusing message that says "explicit-exit-notify is ignored by previous <connection> blocks" when the option is pushed. Reported by: Eike Lohmann e.lohm...@ic3s.de https://www.mail-archive.com/openvpn-users@lists.sourceforge.net/msg04052.html
Signed-off-by: Selva Nair <selva.n...@gmail.com> --- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 3a5bccf..d302bd4 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -6110,7 +6110,7 @@ add_option(struct options *options, #ifdef ENABLE_OCC else if (streq(p[0], "explicit-exit-notify") && !p[2]) { - VERIFY_PERMISSION(OPT_P_GENERAL|OPT_P_CONNECTION|OPT_P_EXPLICIT_NOTIFY); + VERIFY_PERMISSION(OPT_P_GENERAL|(pull_mode? 0:OPT_P_CONNECTION)|OPT_P_EXPLICIT_NOTIFY); if (p[1]) { options->ce.explicit_exit_notification = positive_atoi(p[1]); -- 2.6.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel