]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
The Windows version will now use a default route-delay
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 27 Feb 2007 23:51:27 +0000 (23:51 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 27 Feb 2007 23:51:27 +0000 (23:51 +0000)
of 5 seconds to deal with an apparent routing table race
condition on Vista.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1747 e7ae566f-a301-0410-adde-c780ea21d3b5

options.c

index 94da98e9e5e8a5e021f7cfb62e44ad8d049c28bc..530ff689ab3b607454d464d25579c2400a79f878 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1550,7 +1550,7 @@ options_postprocess (struct options *options, bool first_time)
       if ((dev == DEV_TYPE_TUN || dev == DEV_TYPE_TAP) && !options->route_delay_defined)
        {
          options->route_delay_defined = true;
-         options->route_delay = 0;
+         options->route_delay = 5; /* Vista sometimes has a race without this */
        }
 
       if (options->ifconfig_noexec)