This commit is contained in:
quietsy
2022-01-29 15:45:53 +02:00
parent 39774176ae
commit f14650028b
+1 -1
View File
@@ -32,10 +32,10 @@ def find_apps():
def is_available(url):
host, port = url.split("/")[2].split(":")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1)
try:
host, port = url.split("/")[2].split(":")
s.connect((host, int(port)))
s.shutdown(socket.SHUT_RDWR)
return True