diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-22 18:09:40 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-22 18:09:40 +0000 |
commit | a9c802b2a3f77f2b906e22f582681cdec0790c32 (patch) | |
tree | bef37f7bb1a685d9d0b8983016668019721dc588 /forward.c | |
parent | a67724cb6dc227a781b76d5c7baaaeacbf395f01 (diff) | |
download | openvpn-a9c802b2a3f77f2b906e22f582681cdec0790c32.tar.gz openvpn-a9c802b2a3f77f2b906e22f582681cdec0790c32.tar.xz openvpn-a9c802b2a3f77f2b906e22f582681cdec0790c32.zip |
--ip-win32 adaptive is now the default.
--ip-win32 netsh (or --ip-win32 adaptive when in netsh
mode) can now set DNS/WINS addresses on the TAP-Win32
adapter.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@857 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'forward.c')
-rw-r--r-- | forward.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -275,7 +275,18 @@ check_add_routes_dowork (struct context *c) { msg (D_ROUTE, "Route: Waiting for TUN/TAP interface to come up..."); if (c->c1.tuntap) - tun_standby (c->c1.tuntap); + { + if (!tun_standby (c->c1.tuntap)) + { + c->sig->signal_received = SIGHUP; + c->sig->signal_text = "ip-fail"; + c->persist.restart_sleep_seconds = 10; +#ifdef WIN32 + show_routes (M_INFO|M_NOPREFIX); + show_adapters (M_INFO|M_NOPREFIX); +#endif + } + } update_time (); if (c->c2.route_wakeup.n != 1) event_timeout_init (&c->c2.route_wakeup, 1, now); |