From 84927c13ee7e5d251d0107c68e948d9905e3377f Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 25 Jan 2025 22:36:34 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 38c3630..178b681 100644 --- a/server.py +++ b/server.py @@ -50,7 +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(" ")): - if i == 0 and v != str({clientport}): + 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: return {"success": False, "response": "The ident server doesn't know what the server port is."}