Update app.py

pull/15/head
Laurence Luo 2024-07-05 21:26:41 +08:00
parent 009cb113dd
commit cb4192a9d6
No known key found for this signature in database
GPG Key ID: 76D108A29460F5F9
1 changed files with 6 additions and 2 deletions

8
app.py
View File

@ -101,7 +101,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min
MajorVersion, MinorVersion, MinorVersion, MajorVersion, MinorVersion, MinorVersion,
0, # Unknown 0, # Unknown
0, # No Games flag. 0 means "NoGames = false". But it does not work. 0, # No Games flag. 0 means "NoGames = false". But it does not work.
0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work.
) )
EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode() EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode()
FileName = EncodedLicenseString.replace('/', '').replace('\\', '') FileName = EncodedLicenseString.replace('/', '').replace('\\', '')
@ -150,4 +150,8 @@ def index():
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=False) app.run(
'0.0.0.0',
5000,
False
)