From 2e128bb611cb0b0e256a270aec8b8fb5bac571ae Mon Sep 17 00:00:00 2001 From: bardophshampine <90364136+bardophshampine@users.noreply.github.com> Date: Wed, 6 Oct 2021 10:57:55 +0800 Subject: [PATCH] feat: Update github to hub.fastgit.org Github repositories are blocked by firewall, please follow the strategy used by chocolately which uses fastgit.org mirror for github. --- README.md | 2 +- v2rayN/v2rayN/Global.cs | 8 ++++---- v2rayN/v2rayN/Handler/UpdateHandle.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c1197a8b..e0ce48d4 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,4 @@ ### Requirements - Microsoft [.NET Framework 4.6](https://docs.microsoft.com/zh-cn/dotnet/framework/install/guide-for-developers) or higher -- Project V core [https://github.com/v2fly/v2ray-core/releases](https://github.com/v2fly/v2ray-core/releases) +- Project V core [https://hub.fastgit.org/v2fly/v2ray-core/releases](https://hub.fastgit.org/v2fly/v2ray-core/releases) diff --git a/v2rayN/v2rayN/Global.cs b/v2rayN/v2rayN/Global.cs index a44cc1ee..39cc8acc 100644 --- a/v2rayN/v2rayN/Global.cs +++ b/v2rayN/v2rayN/Global.cs @@ -9,11 +9,11 @@ namespace v2rayN public const string DownloadFileName = "v2ray-windows.zip"; public const string v2rayWebsiteUrl = @"https://www.v2fly.org/"; - public const string AboutUrl = @"https://github.com/2dust/v2rayN"; + public const string AboutUrl = @"https://hub.fastgit.org/2dust/v2rayN"; public const string UpdateUrl = AboutUrl + @"/releases"; - public const string v2flyCoreUrl = "https://github.com/v2fly/v2ray-core/releases"; - public const string xrayCoreUrl = "https://github.com/XTLS/Xray-core/releases"; - public const string NUrl = @"https://github.com/2dust/v2rayN/releases"; + public const string v2flyCoreUrl = "https://hub.fastgit.org/v2fly/v2ray-core/releases"; + public const string xrayCoreUrl = "https://hub.fastgit.org/XTLS/Xray-core/releases"; + public const string NUrl = @"https://hub.fastgit.org/2dust/v2rayN/releases"; /// diff --git a/v2rayN/v2rayN/Handler/UpdateHandle.cs b/v2rayN/v2rayN/Handler/UpdateHandle.cs index fcfcea40..db5ad598 100644 --- a/v2rayN/v2rayN/Handler/UpdateHandle.cs +++ b/v2rayN/v2rayN/Handler/UpdateHandle.cs @@ -35,7 +35,7 @@ namespace v2rayN.Handler private const string v2flyCoreUrl = Global.v2flyCoreUrl + "/download/{0}/v2ray-windows-{1}.zip"; private readonly string xrayCoreLatestUrl = Global.xrayCoreUrl + "/latest"; private const string xrayCoreUrl = Global.xrayCoreUrl + "/download/{0}/Xray-windows-{1}.zip"; - private const string geoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat"; + private const string geoUrl = "https://hub.fastgit.org/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat"; public void CheckUpdateGuiN(Config config, Action update) {