]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix '--dev null'
authorGert Doering <gert@greenie.muc.de>
Fri, 24 Feb 2017 13:52:22 +0000 (14:52 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 24 Feb 2017 19:10:48 +0000 (20:10 +0100)
commit2085c1f3875b9c96ac739941712247b805677efa
tree0f6f3bca3eb2d152000eff6fdb6ce477163877e7
parent4c241acc67c1d6b42dbe1f6199c75d9f7f228ac2
Fix '--dev null'

To test whether a server is reachable and all the key handling is
right, openvpn can connect with "--dev null --ifconfig-noexec" to
avoid needing to the client with elevated privileges.

This was erroring out for no good reason (because the "set environment
variables appropriately" code didn't know if this is a tun or tap
device...) - treat --dev null as "tap", done.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20170224135222.44640-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14186.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 22c5381b71710ad0e1dbbccc1d5680fccb602311)
src/openvpn/tun.c