update workflow and patch dockerized code

This commit is contained in:
2025-05-15 00:26:16 +05:00
parent 5032662495
commit 852ec18c30
3 changed files with 92 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ requests.packages.urllib3.disable_warnings(InsecureRequestWarning) # insecure wa
domains = os.getenv("TARGET_DOMAINS", "").split(',')
domains = [d.strip() for d in domains if d.strip()]
protocol = os.getenv("TARGET_PROTOCOL", "https://")
protocol = os.getenv("TARGET_PROTOCOL", "https")
verify_domain = bool(os.getenv("TARGET_SSL_VERIFY", "True"))
token = os.getenv("BOT_TOKEN", "")
chatid = int(os.getenv("BOT_CHATID", ""))
@@ -20,7 +20,7 @@ timeout_domains = []
def CheckDomain(domain):
try:
r = requests.get(f"{protocol}{domain}", verify=verify_domain) # verify SSL crt disable
r = requests.get(f"{protocol}://{domain}", verify=verify_domain) # verify SSL crt disable
code = int(r.status_code)
return code
except requests.exceptions.ConnectionError: