From 5c9e59947c2a8cc6313fa1431e522ad2a1e326bb Mon Sep 17 00:00:00 2001 From: Memory <134070804+Memory2314@users.noreply.github.com> Date: Sat, 27 Jun 2026 21:01:17 +0800 Subject: [PATCH] feat: add more GitHub download proxies --- src/main/resolve/autoUpdater.ts | 7 ++++++- src/main/utils/github.ts | 7 ++++++- src/renderer/src/components/settings/general-config.tsx | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/resolve/autoUpdater.ts b/src/main/resolve/autoUpdater.ts index 9ea52a0d..1144e44a 100644 --- a/src/main/resolve/autoUpdater.ts +++ b/src/main/resolve/autoUpdater.ts @@ -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] diff --git a/src/main/utils/github.ts b/src/main/utils/github.ts index 5ba4ef93..89237d94 100644 --- a/src/main/utils/github.ts +++ b/src/main/utils/github.ts @@ -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] diff --git a/src/renderer/src/components/settings/general-config.tsx b/src/renderer/src/components/settings/general-config.tsx index 8defdf25..0e979e5d 100644 --- a/src/renderer/src/components/settings/general-config.tsx +++ b/src/renderer/src/components/settings/general-config.tsx @@ -208,6 +208,7 @@ const GeneralConfig: React.FC = () => { gh-proxy.org ghfast.top down.clashparty.org + download.mihomo.party