mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-23 19:02:37 +01:00
🐛 fix windows process.getuid
This commit is contained in:
parent
57c9813f2f
commit
7cbaebdd2b
@ -7,7 +7,7 @@ export function initStats() {
|
|||||||
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
|
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
|
||||||
console.log(`[System] ${os.platform()} ${os.arch()}`);
|
console.log(`[System] ${os.platform()} ${os.arch()}`);
|
||||||
console.log(`[Process] running with pid: ${process.pid}`);
|
console.log(`[Process] running with pid: ${process.pid}`);
|
||||||
if (process.getuid() === 0) {
|
if (process.getuid && process.getuid() === 0) {
|
||||||
console.warn(
|
console.warn(
|
||||||
red(
|
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.`
|
`[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.`
|
||||||
|
Loading…
Reference in New Issue
Block a user