From 87737a8bdb2a7d5e4744d1e07caf2f31f54516b3 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sun, 12 May 2024 20:41:45 +0800 Subject: [PATCH] refactor: Remove random os hostname --- src/common/utils/system.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/utils/system.ts b/src/common/utils/system.ts index 63818422..014115e6 100644 --- a/src/common/utils/system.ts +++ b/src/common/utils/system.ts @@ -6,8 +6,7 @@ let osName: string; try { osName = os.hostname(); } catch (e) { - osName = 'NapCat ' + crypto.randomUUID().substring(0, 4); - + osName = 'NapCat'; // + crypto.randomUUID().substring(0, 4); } export const systemPlatform = os.platform(); export const cpuArch = os.arch();