diff --git a/FastGithub/Controllers/HomeController.cs b/FastGithub/Controllers/HomeController.cs index 557d9fd..3df7c99 100644 --- a/FastGithub/Controllers/HomeController.cs +++ b/FastGithub/Controllers/HomeController.cs @@ -14,7 +14,7 @@ namespace FastGithub.Controllers /// public IActionResult Index() { - var model = new Home(); + var model = new Home { Host = Request.Host.ToString() }; return View(model); } } diff --git a/FastGithub/Models/Home.cs b/FastGithub/Models/Home.cs index dd31dfe..4a5687c 100644 --- a/FastGithub/Models/Home.cs +++ b/FastGithub/Models/Home.cs @@ -11,5 +11,10 @@ namespace FastGithub.Models /// 获取版本号 /// public string? Version { get; } = Assembly.GetEntryAssembly()?.GetCustomAttribute()?.InformationalVersion; + + /// + /// 请求域名或ip + /// + public string? Host { get; set; } } } diff --git a/FastGithub/Views/Home/Index.cshtml b/FastGithub/Views/Home/Index.cshtml index dab6224..6d17651 100644 --- a/FastGithub/Views/Home/Index.cshtml +++ b/FastGithub/Views/Home/Index.cshtml @@ -126,9 +126,9 @@ - hosts + hosts文件 - hosts解析ip + hosts规则冲突 需要从hosts文件移除github相关域名的配置 @@ -136,10 +136,20 @@ - 代理 + 代理(proxy) - 浏览器或系统代理 - 需要将浏览器和系统配置为不代理github相关域名 + 浏览器或系统代理冲突 + 关闭代理,或将浏览器和系统配置为不代理github相关域名 + + + + + + + 浏览器安全DNS + + 浏览器安全DNS冲突 + 关闭浏览器的安全DNS功能或将安全DNS设置为https://@(Model?.Host)
需要从hosts文件移除github相关域名的配置
需要将浏览器和系统配置为不代理github相关域名
关闭代理,或将浏览器和系统配置为不代理github相关域名
关闭浏览器的安全DNS功能或将安全DNS设置为https://@(Model?.Host)