Skip to content

Commit

Permalink
Merge pull request #8 from AndrewDemski-ad-gmail-com/AndrewDemski-ad-…
Browse files Browse the repository at this point in the history
…gmail-com-patch-4

Update Test-ModsPath.ps1
  • Loading branch information
AndrewDemski-ad-gmail-com committed Sep 4, 2024
2 parents bf4997d + b95a4d5 commit 21ed336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Winget-AutoUpdate/functions/Test-ModsPath.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath, $AzureBlobSASURL) {
# If path is URL
if ($ExternalMods -like "http*") {
# ADD TLS 1.2 and TLS 1.1 to list of currently used protocols
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls11
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; #DevSkim: ignore DS440020,DS440020 Hard-coded SSL/TLS Protocol
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls11; #DevSkim: ignore DS440020,DS440020 Hard-coded SSL/TLS Protocol
#Get Index of $ExternalMods (or index page with href listing of all the Mods)
try {
$WebResponse = Invoke-WebRequest -Uri $ExternalMods -UseBasicParsing
Expand Down

0 comments on commit 21ed336

Please sign in to comment.