From f61fd437ca36ff03cd669726894a09ae4e128427 Mon Sep 17 00:00:00 2001 From: Borg Date: Sat, 28 Jun 2014 14:58:09 +0200 Subject: [PATCH] Fixed tinc-up script calling on Win32. It was called too early. Simple sleep fixes the issue. --- src/net_setup.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net_setup.c b/src/net_setup.c index fa4e9867..b1174435 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -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++) -- 2.20.1