Sfoglia il codice sorgente

Set noBackground by default if on Windows

jeffluo35 9 anni fa
parent
commit
d4229dbf2b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      client/cjdroute2.c

+ 4 - 0
client/cjdroute2.c

@@ -353,7 +353,11 @@ static int genconf(struct Random* rand, bool eth)
            "\n"
            "    // If set to non-zero, cjdns will not fork to the background.\n"
            "    // Recommended for use in conjunction with \"logTo\":\"stdout\".\n"
+#ifdef _WIN32
+           "    \"noBackground\":1,\n"
+#else
            "    \"noBackground\":0,\n"
+#endif
            "}\n");
 
     return 0;