Skip to content

Commit

Permalink
Use binary or operator for enabling TLS1.2 (#6)
Browse files Browse the repository at this point in the history
Using `+=` technically works once but will keep incrementing the value enabling other versions and then overflowing. Not really sure why I used it.
  • Loading branch information
RobFaie authored Aug 21, 2020
1 parent 6231fc6 commit 3d48915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/Invoke-Method.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Invoke-Method {

$uri = 'https://cloud.tenable.com/' + $Path.TrimStart('/')

[Net.ServicePointManager]::SecurityProtocol += [System.Net.SecurityProtocolType]::Tls12
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12

$multiplier = 0.5
while (-not [String]::IsNullOrEmpty($uri)) {
Expand Down

0 comments on commit 3d48915

Please sign in to comment.