summary refs log tree commit diff
path: root/bundle/src/stats.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 11:13:51 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 11:13:51 +0200
commitf259a1fd3e4edc35f0f0694380f4e4b6fe237fba (patch)
tree38c8190338a3ea89b88990427a42d488f33447ed /bundle/src/stats.ts
parent:bug: convert bigint literal to object (diff)
downloadserver-f259a1fd3e4edc35f0f0694380f4e4b6fe237fba.tar.xz
:bug: fix windows process.getuid
Diffstat (limited to '')
-rw-r--r--bundle/src/stats.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts
index 49705424..18bb85ca 100644
--- a/bundle/src/stats.ts
+++ b/bundle/src/stats.ts
@@ -7,7 +7,7 @@ export function initStats() {
 	console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
 	console.log(`[System] ${os.platform()} ${os.arch()}`);
 	console.log(`[Process] running with pid: ${process.pid}`);
-	if (process.getuid() === 0) {
+	if (process.getuid && process.getuid() === 0) {
 		console.warn(
 			red(
 				`[Process] Warning fosscord is running as root, this highly discouraged and might expose your system vulnerable to attackers. Please run fosscord as a user without root privileges.`