mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-27 21:44:28 -04:00
parent
cbd987d8a4
commit
de61c660dd
1 changed files with 5 additions and 1 deletions
|
@ -353,7 +353,11 @@ def server_check():
|
|||
srv_config['hwid'] = randomhwid[:16]
|
||||
|
||||
# Sanitize HWID.
|
||||
hexstr = srv_config['hwid'].strip('0x')
|
||||
hexstr = srv_config['hwid']
|
||||
# Strip 0x from the start of hexstr
|
||||
if hexstr.startswith("0x"):
|
||||
hexstr = hexstr[2:]
|
||||
|
||||
hexsub = re.sub(r'[^0-9a-fA-F]', '', hexstr)
|
||||
diff = set(hexstr).symmetric_difference(set(hexsub))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue