@echo off
REM RustDesk server auto-config installer for Windows

set CONFIG_DIR=%APPDATA%\RustDesk\config
set CONFIG_FILE=%CONFIG_DIR%\RustDesk2.toml

if not exist "%CONFIG_DIR%" mkdir "%CONFIG_DIR%"

(
echo rendezvous_server = '89.167.88.232'
echo nat_type = 1
echo serial = 0
echo.
echo [options]
echo custom-rendezvous-server = '89.167.88.232'
echo relay-server = '89.167.88.232'
echo key = 'hEovlP9IofPv0aGcOpIcyr8eWI5hnWiKG8b5rL7pUYw='
) > "%CONFIG_FILE%"

echo RustDesk server config installed successfully.
echo Please restart RustDesk if it is currently open.
pause
