Update server.py

This commit is contained in:
Nova Cat 2025-02-05 19:29:17 -08:00
parent 59a7dce826
commit 324970c129

View file

@ -32,7 +32,8 @@ def isalphanumeric(text:str, channel=False):
return True return True
def getident(hostt:str, clientport:int, ssll:bool): def getident(hostt:str, clientport:int, ssll:bool):
try: try:
identsender = socket.socket((socket.AF_INET if ":" in hostt else socket.AF_INET6), socket.SOCK_STREAM) print(hostt)
identsender = socket.socket((socket.AF_INET6 if ":" in hostt else socket.AF_INET), socket.SOCK_STREAM)
identsender.settimeout(2) identsender.settimeout(2)
responsee = "" responsee = ""
try: try: