add a result for the method of use
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s

This commit is contained in:
2026-08-05 14:45:52 +01:00
parent b4ab48be08
commit 3b2f77df35
4 changed files with 33 additions and 8 deletions
+9 -4
View File
@@ -7,13 +7,18 @@ def full_testing(url_website):
#step 1 : test without VPN
status = test_website(url_website)
#step 2 : test with VPN
if status != 200:
if status == 200:
result = "REACHABLE"
else:
#step 2 : test with VPN
status = test_website(url_website,bool_proxy=True)
if status != 200:
result = "UNREACHABLE"
else:
result = "VPN REQUIRED"
return status
return status,result
def test_website(url_website,bool_proxy=False):