@echo off
setlocal
chcp 936 >nul
cd /d "%~dp0"
Title ip2云端更新 hysteria2 最新配置
..\..\wget -t 2  --no-hsts --no-check-certificate https://www.gitlabip.xyz/Alvin9999/PAC/refs/heads/master/backup/img/1/2/ipp/hysteria2/3/config.json

if exist config.json goto startcopy

..\..\wget -t 2  --no-hsts --no-check-certificate https://gitlab.com/free9999/ipupdate/-/raw/master/backup/img/1/2/ipp/hysteria2/3/config.json

if exist config.json goto startcopy

echo ip更新失败，请试试其它ip更新
pause
exit
:startcopy

del "..\config.json_backup"
ren "..\config.json"  config.json_backup
copy /y "%~dp0config.json" ..\config.json
del "%~dp0config.json"
ECHO.&ECHO.已更新完成最新hysteria2配置,请按回车键或空格键启动程序！ &PAUSE >NUL 2>NUL
exit