parent
ae766b5b1c
commit
59a7dce826
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ 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, socket.SOCK_STREAM)
|
identsender = socket.socket((socket.AF_INET if ":" in hostt else socket.AF_INET6), socket.SOCK_STREAM)
|
||||||
identsender.settimeout(2)
|
identsender.settimeout(2)
|
||||||
responsee = ""
|
responsee = ""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue