mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-27 19:25:52 +08:00
请求优化
This commit is contained in:
@@ -52,9 +52,9 @@ def gen_new_datas(datas, ports):
|
|||||||
subdomain = data.get('subdomain')
|
subdomain = data.get('subdomain')
|
||||||
for port in ports:
|
for port in ports:
|
||||||
for protocol in protocols:
|
for protocol in protocols:
|
||||||
if port == 443:
|
if port == 80:
|
||||||
url = f'https://{subdomain}:{port}'
|
url = f'http://{subdomain}:{port}'
|
||||||
elif port == 8443:
|
elif port == 443:
|
||||||
url = f'https://{subdomain}:{port}'
|
url = f'https://{subdomain}:{port}'
|
||||||
else:
|
else:
|
||||||
url = f'{protocol}{subdomain}:{port}'
|
url = f'{protocol}{subdomain}:{port}'
|
||||||
|
|||||||
Reference in New Issue
Block a user