use tls, stop for now
This commit is contained in:
@@ -23,8 +23,6 @@ namespace DotNetMashup.Web.Repositories
|
||||
{
|
||||
this._data = data;
|
||||
this.setting = setting;
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
|
||||
ServicePointManager.ServerCertificateValidationCallback += new System.Net.Security.RemoteCertificateValidationCallback((s, ce, ch, ssl) => true);
|
||||
}
|
||||
|
||||
public string FactoryName
|
||||
@@ -112,6 +110,7 @@ namespace DotNetMashup.Web.Repositories
|
||||
|
||||
private async static Task<List<KeyValuePair<string, SyndicationFeed>>> GetFeed(string url, string id, List<KeyValuePair<string, SyndicationFeed>> syndicationFeeds)
|
||||
{
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
var feeds = new List<KeyValuePair<string, SyndicationFeed>>();
|
||||
try
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@if(Model.NextPage.HasValue)
|
||||
{
|
||||
<div class="row" style="min-height: 100px">
|
||||
<a asp-action="Index" asp-route-page="@Model.NextPage" class="pill col-md-offset-5 "> --> Next Page</a>
|
||||
<a asp-action="Index" asp-route-page="@Model.NextPage" class="pill col-md-offset-5 ">Next Page</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user