Skip to content

Commit

Permalink
update conversion.py add url
Browse files Browse the repository at this point in the history
  • Loading branch information
a2253550432 committed Sep 29, 2024
1 parent bf6d1ba commit 27b57ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ def get_servers():
manual['type'] = 'select'
manual['proxies'] = all_proxies
manual['interval'] = -1
manual['url'] = 'http://www.gstatic.com/generate_204'

auto['name'] = '自动选择'
auto['type'] = 'url-test'
auto['proxies'] = all_proxies
auto['interval'] = -1
auto['url'] = 'http://www.gstatic.com/generate_204'

proxy_group.append(manual)
proxy_group.append(auto)
Expand All @@ -111,6 +113,7 @@ def get_servers():
group['type'] = 'url-test'
group['proxies'] = countries[country]
group['interval'] = -1
group['url'] = 'http://www.gstatic.com/generate_204'
proxy_group.append(group)

# 加入openai等特定分类
Expand All @@ -119,6 +122,7 @@ def get_servers():
group['type'] = 'select'
group['proxies'] = datamy['proxy-groups'][0]['proxies'][1:] # 去除香港
group['interval'] = -1
group['url'] = 'http://www.gstatic.com/generate_204'
proxy_group.append(group)

datamy['proxy-groups'] = proxy_group
Expand Down

0 comments on commit 27b57ad

Please sign in to comment.