add a result for the method of use
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user