diff options
author | Gert Doering <gert@greenie.muc.de> | 2015-04-28 13:04:23 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2015-04-28 17:13:44 +0200 |
commit | 1a7fc1ea2207580693b2801099f8a473f1c07828 (patch) | |
tree | 457c889e39d89b6f4c1e1c338e18e6485ff6498c /src/openvpn/options.c | |
parent | ca32c1551b05bf4cead7dceae62c412886fded55 (diff) | |
download | openvpn-1a7fc1ea2207580693b2801099f8a473f1c07828.tar.gz openvpn-1a7fc1ea2207580693b2801099f8a473f1c07828.tar.xz openvpn-1a7fc1ea2207580693b2801099f8a473f1c07828.zip |
Print helpful error message on --mktun/--rmtun if not available.
OpenVPN only supports --mktun/--rmtun to create/destroy persistant
tunnels on Linux. On BSD OSes, "ifconfig tun0 create" can do the
same job, so we do not actually need to support it - but the previous
error message ("unknown option") wasn't helpful. So always accept
the option now, and on non-supported systems, direct user to manpage.
Trac #85
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Message-Id: <1430219063-12291-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9617
(cherry picked from commit 4ad2b65d9deb3197d847d7dcc36715aa5394836f)
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r-- | src/openvpn/options.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index dd3f1e4..496eb5d 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -7038,7 +7038,6 @@ add_option (struct options *options, options->pkcs11_id_management = true; } #endif -#ifdef ENABLE_FEATURE_TUN_PERSIST else if (streq (p[0], "rmtun")) { VERIFY_PERMISSION (OPT_P_GENERAL); @@ -7051,7 +7050,6 @@ add_option (struct options *options, options->persist_config = true; options->persist_mode = 1; } -#endif else if (streq (p[0], "peer-id")) { VERIFY_PERMISSION (OPT_P_PEER_ID); |