netbird-claude-install.ps1: принудительно TLS 1.2+ для старых Windows
PowerShell 5.1 на Windows 2012R2/2016 по умолчанию использует TLS 1.0/1.1 —
NPM с Let's Encrypt и netbird.io рвут такие соединения ("Базовое соединение
закрыто"). Выставляем Tls12+Tls13 в самом начале скрипта.
This commit is contained in:
@@ -11,6 +11,13 @@
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# ===== TLS 1.2+ (PowerShell 5.1 на 2012R2/2016 по умолчанию TLS 1.0) =====
|
||||
try {
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]'Tls12,Tls13'
|
||||
} catch {
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
}
|
||||
|
||||
# ===== Параметры =====
|
||||
$SETUP_KEY = "83301E74-6F86-4CBD-AF77-0C65730103CA" # Claude-Diag, истекает 2026-05-21
|
||||
$NETBIRD_CIDR = "100.70.0.0/16" # адресное пространство tenant'а
|
||||
|
||||
Reference in New Issue
Block a user