summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-09-25 18:32:25 +0200
committerArne Schwabe <arne@rfc2549.org>2012-09-25 18:32:25 +0200
commitaa3057b81047ddea9f3649049f5d32a24ea178cc (patch)
tree1e858caf546c134d6f83e277654793f128442248
parentf357f2f0bac975bd40c1ea3f66064bf83eab6b41 (diff)
Add dummy string for tun device name (closes issue #93)
-rw-r--r--openvpn/src/openvpn/tun.c2
1 files changed, 2 insertions, 0 deletions
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);
}