Browse Source

Add core hysteria2

pull/4409/head
2dust 1 year ago
parent
commit
f4dd970f5e
  1. 13
      v2rayN/v2rayN/Handler/LazyConfig.cs
  2. 1
      v2rayN/v2rayN/Mode/ECoreType.cs

13
v2rayN/v2rayN/Handler/LazyConfig.cs

@ -361,6 +361,19 @@ namespace v2rayN.Handler
arguments = "run -c config.json",
coreUrl = Global.juicityCoreUrl
});
coreInfos.Add(new CoreInfo
{
coreType = ECoreType.hysteria2,
coreExes = new List<string> { "hysteria-windows-amd64", "hysteria-windows-386", "hysteria" },
arguments = "",
coreUrl = Global.hysteriaCoreUrl,
coreReleaseApiUrl = Global.hysteriaCoreUrl.Replace(Global.githubUrl, Global.githubApiUrl),
coreDownloadUrl32 = Global.hysteriaCoreUrl + "/download/{0}/hysteria-windows-386.exe",
coreDownloadUrl64 = Global.hysteriaCoreUrl + "/download/{0}/hysteria-windows-amd64.exe",
coreDownloadUrlArm64 = Global.hysteriaCoreUrl + "/download/{0}/hysteria-windows-arm64.exe",
redirectInfo = true,
});
}
#endregion Core Type

1
v2rayN/v2rayN/Mode/ECoreType.cs

@ -13,6 +13,7 @@
tuic = 23,
sing_box = 24,
juicity = 25,
hysteria2 = 26,
v2rayN = 99
}
}

Loading…
Cancel
Save