Skip to content

Commit

Permalink
更新安全DNS冲突说明
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Aug 25, 2021
1 parent bae6368 commit 87289b6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FastGithub/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class HomeController : Controller
/// <returns></returns>
public IActionResult Index()
{
var model = new Home();
var model = new Home { Host = Request.Host.ToString() };
return View(model);
}
}
Expand Down
5 changes: 5 additions & 0 deletions FastGithub/Models/Home.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ public class Home
/// 获取版本号
/// </summary>
public string? Version { get; } = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;

/// <summary>
/// 请求域名或ip
/// </summary>
public string? Host { get; set; }
}
}
20 changes: 15 additions & 5 deletions FastGithub/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,30 @@

<div class="col-md-5">
<div class="thumbnail">
<div class="os">hosts</div>
<div class="os">hosts文件</div>
<div class="caption">
<h4>hosts解析ip</h4>
<h4>hosts规则冲突</h4>
<p>需要从hosts文件移除github相关域名的配置</p>
</div>
</div>
</div>

<div class="col-md-5">
<div class="thumbnail">
<div class="os">代理</div>
<div class="os">代理(proxy)</div>
<div class="caption">
<h4>浏览器或系统代理</h4>
<p>需要将浏览器和系统配置为不代理github相关域名</p>
<h4>浏览器或系统代理冲突</h4>
<p>关闭代理,或将浏览器和系统配置为不代理github相关域名</p>
</div>
</div>
</div>

<div class="col-md-5">
<div class="thumbnail">
<div class="os">浏览器安全DNS</div>
<div class="caption">
<h4>浏览器安全DNS冲突</h4>
<p>关闭浏览器的安全DNS功能或将安全DNS设置为https://@(Model?.Host)</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 87289b6

Please sign in to comment.