From ec186bd20401f85b7d7f06678f9ce1e47904c25d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 25 Sep 2012 18:32:25 +0200 Subject: Add dummy string for tun device name (closes issue #93) --- openvpn/src/openvpn/tun.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openvpn/src') diff --git a/openvpn/src/openvpn/tun.c b/openvpn/src/openvpn/tun.c index a56c997c..c05d78f8 100644 --- a/openvpn/src/openvpn/tun.c +++ b/openvpn/src/openvpn/tun.c @@ -1438,6 +1438,8 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu if( (tt->fd < 0) || ! (strcmp("ok",up.password)==0)) { msg (M_ERR, "ERROR: Cannot open TUN"); } + /* Set the actual name to a dummy name to enable scripts */ + tt->actual_name = "vpnservice-tun"; gc_free (&gc); } -- cgit v1.2.3