Fixed tinc-up script calling on Win32.
[oweals/tinc.git] / src / net_setup.c
index fa4e9867a4d300215c1f45e4fcb728f1608faf0f..b11744354a438305d62048ad4da8250549f23f95 100644 (file)
@@ -713,6 +713,12 @@ static bool setup_myself(void) {
        xasprintf(&envp[2], "INTERFACE=%s", iface ? : "");
        xasprintf(&envp[3], "NAME=%s", myself->name);
 
+#ifdef HAVE_MINGW
+       Sleep(1000);
+#endif
+#ifdef HAVE_CYGWIN
+       sleep(1);
+#endif
        execute_script("tinc-up", envp);
 
        for(i = 0; i < 4; i++)