--- src/openvpn/options.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 281ef0b..dbb926d 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -5616,7 +5616,14 @@ add_option (struct options *options, } else if (streq (p[0], "setenv") && p[1] && !p[3]) { - VERIFY_PERMISSION (OPT_P_GENERAL); + if (streq (p[1], "opt")) + { + VERIFY_PERMISSION (OPT_P_SETENV); + } + else + { + VERIFY_PERMISSION (OPT_P_GENERAL); + } if (streq (p[1], "REMOTE_RANDOM_HOSTNAME") && !p[2]) { options->sockflags |= SF_HOST_RANDOMIZE; -- 1.9.3 ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel