]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Print helpful error message on --mktun/--rmtun if not available.
authorGert Doering <gert@greenie.muc.de>
Tue, 28 Apr 2015 11:04:23 +0000 (13:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Apr 2015 15:12:56 +0000 (17:12 +0200)
commit4ad2b65d9deb3197d847d7dcc36715aa5394836f
tree4ace721720a08364cb491adecaef1faca49b4883
parent0e3f894098f9286ec3e703ce16fe9bda0cd2c74e
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
src/openvpn/init.c
src/openvpn/options.c