feat: add more GitHub download proxies

This commit is contained in:
Memory
2026-06-27 21:01:17 +08:00
committed by GitHub
parent 01902f9c31
commit 5c9e59947c
3 changed files with 13 additions and 2 deletions

View File

@@ -16,7 +16,12 @@ import { checkAdminPrivileges } from '../core/manager'
import { parse } from '../utils/yaml'
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[] {
if (proxyPref === 'direct') return [githubUrl]

View File

@@ -13,7 +13,12 @@ import { createLogger } from './logger'
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[] {
if (proxyPref === 'direct') return [githubUrl]

View File

@@ -208,6 +208,7 @@ const GeneralConfig: React.FC = () => {
<SelectItem key="https://gh-proxy.org">gh-proxy.org</SelectItem>
<SelectItem key="https://ghfast.top">ghfast.top</SelectItem>
<SelectItem key="https://down.clashparty.org">down.clashparty.org</SelectItem>
<SelectItem key="https://download.mihomo.party">download.mihomo.party</SelectItem>
</Select>
</SettingItem>
<SettingItem title={t('settings.silentStart')} divider>