From ceb901ea01672bf24d05bfbb653b2165db02da70 Mon Sep 17 00:00:00 2001 From: Vitor Tomaz Date: Wed, 22 Sep 2021 09:47:26 +0100 Subject: [PATCH] v1.35 Fix on https usage --- AdvancedConnectivityPolicyTests.ps1 | 2 +- AzureSQLConnectivityChecker.ps1 | 6 +++--- README.md | 4 ++-- ReducedSQLConnectivityChecker.ps1 | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AdvancedConnectivityPolicyTests.ps1 b/AdvancedConnectivityPolicyTests.ps1 index b558236..d6b6907 100644 --- a/AdvancedConnectivityPolicyTests.ps1 +++ b/AdvancedConnectivityPolicyTests.ps1 @@ -227,7 +227,7 @@ try { Copy-Item -Path $($LocalPath + '/netstandard2.0/TDSClient.dll') -Destination $TDSClientPath } else { - Invoke-WebRequest -Uri $('http://github.com/Azure/SQL-Connectivity-Checker/raw/' + $RepositoryBranch + '/netstandard2.0/TDSClient.dll') -OutFile $TDSClientPath -UseBasicParsing + Invoke-WebRequest -Uri $('https://github.com/Azure/SQL-Connectivity-Checker/raw/' + $RepositoryBranch + '/netstandard2.0/TDSClient.dll') -OutFile $TDSClientPath -UseBasicParsing } $assembly = [System.IO.File]::ReadAllBytes($TDSClientPath) [System.Reflection.Assembly]::Load($assembly) | Out-Null diff --git a/AzureSQLConnectivityChecker.ps1 b/AzureSQLConnectivityChecker.ps1 index 121afb6..74a5eb7 100644 --- a/AzureSQLConnectivityChecker.ps1 +++ b/AzureSQLConnectivityChecker.ps1 @@ -1038,7 +1038,7 @@ function RunConnectivityPolicyTests($port) { else { try { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls - Invoke-WebRequest -Uri $('http://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/' + $RepositoryBranch + '/AdvancedConnectivityPolicyTests.ps1') -OutFile ".\AdvancedConnectivityPolicyTests.ps1" -UseBasicParsing + Invoke-WebRequest -Uri $('https://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/' + $RepositoryBranch + '/AdvancedConnectivityPolicyTests.ps1') -OutFile ".\AdvancedConnectivityPolicyTests.ps1" -UseBasicParsing } catch { $msg = $CannotDownloadAdvancedScript @@ -1250,12 +1250,12 @@ try { Write-Host Warning: Cannot write log file -ForegroundColor Yellow } - TrackWarningAnonymously 'v1.34' + TrackWarningAnonymously 'v1.35' TrackWarningAnonymously ('PowerShell ' + $PSVersionTable.PSVersion + '|' + $PSVersionTable.Platform + '|' + $PSVersionTable.OS ) try { Write-Host '******************************************' -ForegroundColor Green - Write-Host ' Azure SQL Connectivity Checker v1.34 ' -ForegroundColor Green + Write-Host ' Azure SQL Connectivity Checker v1.35 ' -ForegroundColor Green Write-Host '******************************************' -ForegroundColor Green Write-Host Write-Host 'Parameters' -ForegroundColor Yellow diff --git a/README.md b/README.md index 239d1c8..5e8613a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ if ("AzureKudu" -eq $env:DOTNET_CLI_TELEMETRY_PROFILE) { } else { $scriptFile = '/AzureSQLConnectivityChecker.ps1' } -$scriptUrlBase = 'http://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/master' +$scriptUrlBase = 'https://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/master' cls Write-Host 'Trying to download the script file from GitHub (https://github.com/Azure/SQL-Connectivity-Checker), please wait...' try { @@ -96,7 +96,7 @@ if ("AzureKudu" -eq $env:DOTNET_CLI_TELEMETRY_PROFILE) { } else { $scriptFile = '/AzureSQLConnectivityChecker.ps1' } -$scriptUrlBase = 'http://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/master' +$scriptUrlBase = 'https://raw.githubusercontent.com/Azure/SQL-Connectivity-Checker/master' cls Write-Host 'Trying to download the script file from GitHub (https://github.com/Azure/SQL-Connectivity-Checker), please wait...' try { diff --git a/ReducedSQLConnectivityChecker.ps1 b/ReducedSQLConnectivityChecker.ps1 index 3e6d5dd..f245813 100644 --- a/ReducedSQLConnectivityChecker.ps1 +++ b/ReducedSQLConnectivityChecker.ps1 @@ -244,7 +244,7 @@ try { Remove-Item $path } - Invoke-WebRequest -Uri $('http://github.com/Azure/SQL-Connectivity-Checker/raw/' + $RepositoryBranch + '/netstandard2.0/TDSClient.dll') -OutFile $path -UseBasicParsing + Invoke-WebRequest -Uri $('https://github.com/Azure/SQL-Connectivity-Checker/raw/' + $RepositoryBranch + '/netstandard2.0/TDSClient.dll') -OutFile $path -UseBasicParsing $path = $env:TEMP + "/TDSClient.dll" $assembly = [System.IO.File]::ReadAllBytes($path)