parent
59a7dce826
commit
324970c129
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue