@
Jays 拿走不谢
```
@
echo off
setlocal ENABLEDELAYEDEXPANSION
set ddns=
xxx.xyzset profileName=Corp
set servicesName=WireGuardTunnel$!profileName!
for /f "delims= " %%i in ('ping %ddns% -n 1 -w 0 ^|findstr "^[0-9]"') do (
set ip=%%i
)
start /b udp2raw_mp.exe -c -l 0.0.0.0:3333 -r !ip!:52000 -k "yourpassword" --raw-mode faketcp --cipher-mode aes128cbc --fix-gro
:g
for /f "delims= " %%i in ('ping %ddns% -n 1 -w 0 ^|findstr "^[0-9]"') do (
if !ip! equ %%i (
timeout /T 300 /NOBREAK >nul
) else (
taskkill /im udp2raw_mp.exe /f
ping -n 2 127.1 >nul
start /b udp2raw_mp.exe -c -l 0.0.0.0:3333 -r %%i:52000 -k "yourpassword" --raw-mode faketcp --cipher-mode aes128cbc --fix-gro
set /a ip=%%i
ping -n 2 127.1 >nul
net stop !servicesName!
net start !servicesName!
))
goto g
```