@echo off
title FRP-SOCKS Tunnel Watchdog
cd /d "%~dp0"

echo === Watchdog mode: auto-restart on failure ===
echo === Will restart tunnel every 30s if it dies ===
echo === Close this window to stop completely ===
echo.

:loop
call start.bat
echo.
echo === Tunnel exited at %time%, restarting in 10s... ===
echo === (Press Ctrl+C to stop watchdog) ===
timeout /t 10 /nobreak >nul
goto loop
