From a9c802b2a3f77f2b906e22f582681cdec0790c32 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 22 Dec 2005 18:09:40 +0000 Subject: --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 --- forward.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'forward.c') diff --git a/forward.c b/forward.c index 5c35562..4705f44 100644 --- a/forward.c +++ b/forward.c @@ -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); -- cgit