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)
|
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"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue