From ca154fc29e8e5b5084ca6c87ba692bbad621a1c6 Mon Sep 17 00:00:00 2001 From: earthlng Date: Fri, 22 Jan 2021 11:53:05 +0000 Subject: [PATCH] v4.14 - check for TLS1.2 --- updater.bat | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/updater.bat b/updater.bat index 43b516d..a1120ef 100644 --- a/updater.bat +++ b/updater.bat @@ -3,10 +3,10 @@ TITLE arkenfox user.js updater REM ## arkenfox user.js updater for Windows REM ## author: @claustromaniac -REM ## version: 4.13 +REM ## version: 4.14 REM ## instructions: https://github.com/arkenfox/user.js/wiki/3.3-Updater-Scripts -SET v=4.13 +SET v=4.14 VERIFY ON CD /D "%~dp0" @@ -28,6 +28,14 @@ SHIFT GOTO parse :endparse +FOR /F %%i IN ('PowerShell -Command "[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'"') DO ( + IF "%%i" == "False" ( + CALL :message "Your PowerShell version doesn't support TLS1.2 ^! see wiki" + PAUSE + EXIT + ) +) + IF DEFINED _updateb ( REM The normal flow here goes from phase 1 to phase 2 and then phase 3. IF NOT "!_myname:~0,9!"=="[updated]" (