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>
... | ... |
@@ -560,7 +560,9 @@ is_tun_p2p(const struct tuntap *tt) |
560 | 560 |
{ |
561 | 561 |
bool tun = false; |
562 | 562 |
|
563 |
- if (tt->type == DEV_TYPE_TAP || (tt->type == DEV_TYPE_TUN && tt->topology == TOP_SUBNET)) |
|
563 |
+ if (tt->type == DEV_TYPE_TAP |
|
564 |
+ || (tt->type == DEV_TYPE_TUN && tt->topology == TOP_SUBNET) |
|
565 |
+ || tt->type == DEV_TYPE_NULL ) |
|
564 | 566 |
{ |
565 | 567 |
tun = false; |
566 | 568 |
} |