refactor: Remove random os hostname

This commit is contained in:
linyuchen 2024-05-12 20:41:45 +08:00
parent 94273d80b0
commit 87737a8bdb

View File

@ -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();