Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set BAT=%~0
@if "%1"=="R" (
FOR /F "tokens=3 usebackq" %%i in (`netstat -rn ^|findstr /R "\<0\.0\.0\.0" ^|findstr 172`) do (
echo the IP is %%i
route delete mask %%i
route add mask %%i
goto exit_for
)else (
REM 管理者モードになって、デフォルトルートの設定を調整
powershell start-process %BAT% R -verb runas
REM 以下はwstunnelの設定各自書き換えること
start/min cmd /c wstunnel -t 53389: ws://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment