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

This commit is contained in:
Nova Cat 2025-01-25 21:33:22 -08:00
parent cbf3e35d0e
commit e2ea87ac63

View file

@ -32,8 +32,8 @@ def getident(hostt:str, clientport:int, ssll:bool):
identsender.settimeout(5) identsender.settimeout(5)
try: try:
identsender.connect((hostt, 113)) identsender.connect((hostt, 113))
except: except Exception as ex:
return {"success": False, "response": "Could not connect to your ident server."} return {"success": False, "response": f"Could not connect to your ident server: {ex}"}
serverport = "6697" if ssll else "6667" serverport = "6697" if ssll else "6667"
try: try:
identsender.send(bytes(f"{clientport} , {serverport}\r\n", "UTF-8")) identsender.send(bytes(f"{clientport} , {serverport}\r\n", "UTF-8"))