summaryrefslogtreecommitdiff
path: root/openvpn/src/openvpn/tun.c
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-06 18:13:09 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-06 18:13:09 +0200
commitef4fd36f5d38e82ba6165be2468d985d62f1d32f (patch)
tree8cd65adb7b37b6c968f39112ba03c3fe5e2f5c3a /openvpn/src/openvpn/tun.c
parentec7e6b920257e52a24f9fc56150c05f3bbc6da7d (diff)
Add ability to send the log (closes issue #9)
protect fd over unix socket
Diffstat (limited to 'openvpn/src/openvpn/tun.c')
-rw-r--r--openvpn/src/openvpn/tun.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openvpn/src/openvpn/tun.c b/openvpn/src/openvpn/tun.c
index 238d9fba..844d596e 100644
--- a/openvpn/src/openvpn/tun.c
+++ b/openvpn/src/openvpn/tun.c
@@ -1384,8 +1384,10 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu
android_set_dns(print_in_addr_t(tt->options.dns[i], 0, &gc));
}
+
+
if(tt->options.domain)
- android_set_domain(tt->options.domain);
+ management_query_user_pass(management, &up , "DNSDOMAIN", GET_USER_PASS_NEED_OK,(void*) 0);
if((tt->fd = android_open_tun())< 0){
msg (M_ERR, "ERROR: Cannot open TUN");