Skip to content

Commit fd02074

Browse files
committed
Added ServicePointManager.SecurityProtocol to AzureFileSystem constructor
1 parent d5a81b7 commit fd02074

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Our.Umbraco.FileSystemProviders.Azure
1414
using System.Globalization;
1515
using System.IO;
1616
using System.Linq;
17+
using System.Net;
1718
using System.Text.RegularExpressions;
1819
using System.Web;
1920
using global::Umbraco.Core.Configuration;
@@ -88,6 +89,9 @@ internal class AzureFileSystem : IFileSystem
8889
/// </exception>
8990
internal AzureFileSystem(string containerName, string rootUrl, string connectionString, int maxDays, bool useDefaultRoute, BlobContainerPublicAccessType accessType)
9091
{
92+
93+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
94+
9195
if (string.IsNullOrWhiteSpace(containerName))
9296
{
9397
throw new ArgumentNullException(nameof(containerName));

0 commit comments

Comments
 (0)