1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 02:12:40 +01:00

Force Disable WebRTC if Windows is detected

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
This commit is contained in:
Christopher Lentocha 2024-01-05 15:30:02 -05:00
parent 036e3b2fbe
commit b57ac746a4

View File

@ -75,7 +75,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).)
console.log(`[Process] starting with ${cores} threads`);
if (cores === 1) {
if (process.env.WEBRTC_DISABLE == "1") {
if (process.env.WEBRTC_DISABLE == "1" || process.platform == "win32") {
require("./WinServer");
} else {
require("./Server");
@ -111,7 +111,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).)
});
}
} else {
if (process.env.WEBRTC_DISABLE == "1") {
if (process.env.WEBRTC_DISABLE == "1" || process.platform == "win32") {
require("./WinServer");
} else {
require("./Server");