зеркало из https://github.com/microsoft/msquic.git
Fix PowerShell Script Defaults (#365)
This commit is contained in:
Родитель
3fa74d4aa8
Коммит
a10d94050a
|
@ -58,7 +58,7 @@ param (
|
|||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("schannel", "openssl", "stub", "mitls")]
|
||||
[string]$Tls = $null,
|
||||
[string]$Tls = "",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$DisableLogs = $false,
|
||||
|
@ -86,7 +86,7 @@ Set-StrictMode -Version 'Latest'
|
|||
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
|
||||
|
||||
# Default TLS based on current platform.
|
||||
if ($null -eq $Tls) {
|
||||
if ("" -eq $Tls) {
|
||||
if ($IsWindows) {
|
||||
$Tls = "schannel"
|
||||
} else {
|
||||
|
|
|
@ -40,7 +40,7 @@ param (
|
|||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("schannel", "openssl", "stub", "mitls")]
|
||||
[string]$Tls = $null,
|
||||
[string]$Tls = "",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$KeepOutputOnSuccess = $false,
|
||||
|
@ -63,7 +63,7 @@ Set-StrictMode -Version 'Latest'
|
|||
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
|
||||
|
||||
# Default TLS based on current platform.
|
||||
if ($null -eq $Tls) {
|
||||
if ("" -eq $Tls) {
|
||||
if ($IsWindows) {
|
||||
$Tls = "schannel"
|
||||
} else {
|
||||
|
|
|
@ -43,7 +43,7 @@ param (
|
|||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("schannel", "openssl", "stub", "mitls")]
|
||||
[string]$Tls = $null,
|
||||
[string]$Tls = "",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[Int32]$Timeout = 60000,
|
||||
|
@ -69,7 +69,7 @@ Set-StrictMode -Version 'Latest'
|
|||
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
|
||||
|
||||
# Default TLS based on current platform.
|
||||
if ($null -eq $Tls) {
|
||||
if ("" -eq $Tls) {
|
||||
if ($IsWindows) {
|
||||
$Tls = "schannel"
|
||||
} else {
|
||||
|
|
|
@ -83,7 +83,7 @@ param (
|
|||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("schannel", "openssl", "stub", "mitls")]
|
||||
[string]$Tls = $null,
|
||||
[string]$Tls = "",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$Filter = "",
|
||||
|
@ -132,7 +132,7 @@ Set-StrictMode -Version 'Latest'
|
|||
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
|
||||
|
||||
# Default TLS based on current platform.
|
||||
if ($null -eq $Tls) {
|
||||
if ("" -eq $Tls) {
|
||||
if ($IsWindows) {
|
||||
$Tls = "schannel"
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче