Update server.py
All checks were successful
/ check (push) Successful in 10s

This commit is contained in:
Nova Cat 2025-01-25 22:37:57 -08:00
parent 84927c13ee
commit 8737f98d5a

View file

@ -50,6 +50,7 @@ def getident(hostt:str, clientport:int, ssll:bool):
return {"success": False, "response": "The connection was closed."}
else:
for i, v in enumerate(responsee.split(" ")):
print(v)
if i == 0 and v[:-1] != str({clientport}):
return {"success": False, "response": "The ident server sent an invalid client port."}
elif i == 1 and v != serverport: