mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
feat: add more GitHub download proxies
This commit is contained in:
@@ -16,7 +16,12 @@ import { checkAdminPrivileges } from '../core/manager'
|
|||||||
import { parse } from '../utils/yaml'
|
import { parse } from '../utils/yaml'
|
||||||
import * as chromeRequest from '../utils/chromeRequest'
|
import * as chromeRequest from '../utils/chromeRequest'
|
||||||
|
|
||||||
const GITHUB_PROXIES = ['https://gh-proxy.org', 'https://ghfast.top', 'https://down.clashparty.org']
|
const GITHUB_PROXIES = [
|
||||||
|
'https://gh-proxy.org',
|
||||||
|
'https://ghfast.top',
|
||||||
|
'https://down.clashparty.org',
|
||||||
|
'https://download.mihomo.party'
|
||||||
|
]
|
||||||
|
|
||||||
function buildDownloadUrls(githubUrl: string, proxyPref = ''): string[] {
|
function buildDownloadUrls(githubUrl: string, proxyPref = ''): string[] {
|
||||||
if (proxyPref === 'direct') return [githubUrl]
|
if (proxyPref === 'direct') return [githubUrl]
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ import { createLogger } from './logger'
|
|||||||
|
|
||||||
const log = createLogger('GitHub')
|
const log = createLogger('GitHub')
|
||||||
|
|
||||||
const GITHUB_PROXIES = ['https://gh-proxy.org', 'https://ghfast.top', 'https://down.clashparty.org']
|
const GITHUB_PROXIES = [
|
||||||
|
'https://gh-proxy.org',
|
||||||
|
'https://ghfast.top',
|
||||||
|
'https://down.clashparty.org',
|
||||||
|
'https://download.mihomo.party'
|
||||||
|
]
|
||||||
|
|
||||||
function buildDownloadUrls(githubUrl: string, proxyPref = ''): string[] {
|
function buildDownloadUrls(githubUrl: string, proxyPref = ''): string[] {
|
||||||
if (proxyPref === 'direct') return [githubUrl]
|
if (proxyPref === 'direct') return [githubUrl]
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ const GeneralConfig: React.FC = () => {
|
|||||||
<SelectItem key="https://gh-proxy.org">gh-proxy.org</SelectItem>
|
<SelectItem key="https://gh-proxy.org">gh-proxy.org</SelectItem>
|
||||||
<SelectItem key="https://ghfast.top">ghfast.top</SelectItem>
|
<SelectItem key="https://ghfast.top">ghfast.top</SelectItem>
|
||||||
<SelectItem key="https://down.clashparty.org">down.clashparty.org</SelectItem>
|
<SelectItem key="https://down.clashparty.org">down.clashparty.org</SelectItem>
|
||||||
|
<SelectItem key="https://download.mihomo.party">download.mihomo.party</SelectItem>
|
||||||
</Select>
|
</Select>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem title={t('settings.silentStart')} divider>
|
<SettingItem title={t('settings.silentStart')} divider>
|
||||||
|
|||||||
Reference in New Issue
Block a user