@echo off
chcp 65001 >nul
setlocal EnableExtensions
title Леком: отмена исправления Hiddify

echo.
echo  Леком: отмена исправления Hiddify
echo  ==================================
echo.

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f >nul
powershell.exe -NoLogo -NoProfile -Command "$code='[DllImport(\"wininet.dll\", SetLastError=true)] public static extern bool InternetSetOption(IntPtr h, int option, IntPtr buffer, int length);'; Add-Type -MemberDefinition $code -Name WinInet -Namespace Lekom; [void][Lekom.WinInet]::InternetSetOption([IntPtr]::Zero,39,[IntPtr]::Zero,0); [void][Lekom.WinInet]::InternetSetOption([IntPtr]::Zero,37,[IntPtr]::Zero,0)"

echo Исправление отключено. Обычные настройки Windows восстановлены.
echo.
if /I not "%~1"=="--test" pause
exit /b 0

