mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-19 14:50:52 +00:00
Minor fixes
This commit is contained in:
@@ -27,10 +27,10 @@ class TCPServer:
|
||||
self.log.debug(f"recv1 data: {data}")
|
||||
if len(data) > 50:
|
||||
await client.kick("Too long data")
|
||||
return
|
||||
return False, None
|
||||
if "VC2.0" not in data.decode("utf-8"):
|
||||
await client.kick("Outdated Version.")
|
||||
return
|
||||
return False, None
|
||||
else:
|
||||
await client.tcp_send(b"A") # Accepted client version
|
||||
|
||||
@@ -38,7 +38,7 @@ class TCPServer:
|
||||
self.log.debug(f"recv2 data: {data}")
|
||||
if len(data) > 50:
|
||||
await client.kick("Invalid Key (too long)!")
|
||||
return
|
||||
return False, None
|
||||
client.key = data.decode("utf-8")
|
||||
async with aiohttp.ClientSession() as session:
|
||||
url = 'https://auth.beammp.com/pkToUser'
|
||||
|
||||
Reference in New Issue
Block a user