summaryrefslogtreecommitdiff
path: root/openvpn
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
commitec186bd20401f85b7d7f06678f9ce1e47904c25d (patch)
tree7f23684d10cba37a143723706e837a3bf0bf243b /openvpn
parent489ab823b1157a5839b33ac61c31e1f7920f40e7 (diff)
Add dummy string for tun device name (closes issue #93)
Diffstat (limited to 'openvpn')
-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);
}