This commit is contained in:
parent
cbf3e35d0e
commit
e2ea87ac63
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ def getident(hostt:str, clientport:int, ssll:bool):
|
|||
identsender.settimeout(5)
|
||||
try:
|
||||
identsender.connect((hostt, 113))
|
||||
except:
|
||||
return {"success": False, "response": "Could not connect to your ident server."}
|
||||
except Exception as ex:
|
||||
return {"success": False, "response": f"Could not connect to your ident server: {ex}"}
|
||||
serverport = "6697" if ssll else "6667"
|
||||
try:
|
||||
identsender.send(bytes(f"{clientport} , {serverport}\r\n", "UTF-8"))
|
||||
|
|
Loading…
Add table
Reference in a new issue