mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-28 03:03:51 -04:00
Fix discovery
This commit is contained in:
@@ -29,8 +29,8 @@ def find_apps():
|
||||
|
||||
def is_available(url):
|
||||
try:
|
||||
ans = requests.head(url, timeout=5, verify=False)
|
||||
return ans.status_code < 404
|
||||
requests.head(url, timeout=5, verify=False)
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user