refactor: Random os hostname
This commit is contained in:
1 parent
193fc12c5d
commit
10e96f63b4
1 file changed
+1
-1
@@ -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