mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
refactor: Random os hostname
This commit is contained in:
@@ -6,7 +6,7 @@ let osName: string;
|
||||
try {
|
||||
osName = os.hostname();
|
||||
} catch (e) {
|
||||
osName = "NapCat"
|
||||
osName = 'NapCat ' + crypto.randomUUID().substring(0, 4);
|
||||
|
||||
}
|
||||
export const systemPlatform = os.platform();
|
||||
|
Reference in New Issue
Block a user