Skip to content

Commit 59ac172

Browse files
authored
v4.14 - check for TLS1.2 (#1097)
1 parent c974b32 commit 59ac172

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

updater.bat

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ TITLE arkenfox user.js updater
33

44
REM ## arkenfox user.js updater for Windows
55
REM ## author: @claustromaniac
6-
REM ## version: 4.13
6+
REM ## version: 4.14
77
REM ## instructions: https://github.com/arkenfox/user.js/wiki/3.3-Updater-Scripts
88

9-
SET v=4.13
9+
SET v=4.14
1010

1111
VERIFY ON
1212
CD /D "%~dp0"
@@ -28,6 +28,15 @@ SHIFT
2828
GOTO parse
2929
:endparse
3030

31+
FOR /F %%i IN ('PowerShell -Command "[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'"') DO (
32+
IF "%%i" == "False" (
33+
CALL :message "Your PowerShell version doesn't support TLS1.2 ^!"
34+
ECHO: Instructions to update PowerShell are on the arkenfox wiki
35+
PAUSE
36+
EXIT
37+
)
38+
)
39+
3140
IF DEFINED _updateb (
3241
REM The normal flow here goes from phase 1 to phase 2 and then phase 3.
3342
IF NOT "!_myname:~0,9!"=="[updated]" (

0 commit comments

Comments
 (0)