mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-12 12:37:39 +02:00
Update to v8.16.0
This commit is contained in:
@@ -18,7 +18,7 @@ def clear_hosts():
|
||||
import requests
|
||||
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
url = 'https://wafapi2.aapanel.com/api/ip/info_json'
|
||||
url = f'{public.OfficialWaf2Base()}/api/ip/info_json'
|
||||
res = requests.post(url, verify=False)
|
||||
|
||||
if res.status_code == 404:
|
||||
@@ -28,7 +28,7 @@ def clear_hosts():
|
||||
if res != "[]":
|
||||
remove = 1
|
||||
except:
|
||||
result = public.ExecShell("curl -sS --connect-timeout 3 -m 60 -k https://wafapi2.aapanel.com/api/ip/info_json")[0]
|
||||
result = public.ExecShell(f"curl -sS --connect-timeout 3 -m 60 -k {public.OfficialWaf2Base()}/api/ip/info_json")[0]
|
||||
if result != "[]":
|
||||
remove = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user