mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-05 07:40:00 -04:00
Remove print
This commit is contained in:
@@ -34,7 +34,6 @@ def find_apps():
|
|||||||
def is_available(url):
|
def is_available(url):
|
||||||
try:
|
try:
|
||||||
host, port = url.split("/")[2].split(":")
|
host, port = url.split("/")[2].split(":")
|
||||||
print(host + port)
|
|
||||||
with contextlib.closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
|
with contextlib.closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
|
||||||
if sock.connect_ex((host, int(port))) == 0:
|
if sock.connect_ex((host, int(port))) == 0:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user