fix: 2026-06-04 audit pass — README, USB pack, multi-area fixes
WS ticket dashboard auth, builder universal signing/size limits/fusion obfuscation/dropper bundles, Path Tracer WireGuard topology, SessionGate degraded mode and download timeouts, server bootstrap (data dir, cloudflared dedupe, config port precedence), agent mesh/miner/spread fixes. README refreshed; usb bundle repacked; PROBLEMS.md audit log updated.
This commit is contained in:
34
LAUNCH.bat
34
LAUNCH.bat
@@ -105,13 +105,16 @@ if not exist "%ROOT%\data\uploads" mkdir "%ROOT%\data\uploads"
|
||||
if not exist "%ROOT%\data\blueprints" mkdir "%ROOT%\data\blueprints"
|
||||
if not exist "%ROOT%\data\preps" mkdir "%ROOT%\data\preps"
|
||||
|
||||
:: Cloudflare Zero Trust connector starts inside AetherForge.exe when a token is set
|
||||
:: (Calibrate -^> Cloudflare Tunnel Token, or data\cloudflared-token.txt, or AF_TUNNEL_TOKEN).
|
||||
|
||||
:: ----------------------------------------------------------------
|
||||
:: 5. Detect LAN IP for display
|
||||
:: ----------------------------------------------------------------
|
||||
set "SERVER_PORT=8989"
|
||||
set "CONFIG_FILE=%ROOT%\data\config.json"
|
||||
if exist "%CONFIG_FILE%" (
|
||||
for /f "usebackq delims=" %%P in (`powershell -NoProfile -Command "try { $j = Get-Content -Raw '%CONFIG_FILE%' | ConvertFrom-Json; if ($j.port) { $j.port } } catch { }"`) do (
|
||||
if not "%%P"=="" set "SERVER_PORT=%%P"
|
||||
)
|
||||
)
|
||||
for /f "tokens=2 delims=:" %%I in ('ipconfig ^| findstr /i "IPv4" ^| findstr /v "127.0.0.1"') do (
|
||||
set "LAN_IP=%%I"
|
||||
goto lan_done
|
||||
@@ -136,18 +139,37 @@ echo LAN: http://%LAN_IP%:%SERVER_PORT%
|
||||
echo Data: %ROOT%\data\
|
||||
echo.
|
||||
echo Login accounts: admin + comrade ^(passwords below after start^).
|
||||
echo Cloudflare: paste token in Calibrate or data\cloudflared-token.txt — server starts connector.
|
||||
echo Cloudflare tunnel starts below ^(LAUNCH + server^).
|
||||
echo Press Ctrl+C to stop.
|
||||
echo ================================================================
|
||||
echo.
|
||||
|
||||
:: Start Cloudflare connector before server ^(works with old or new AetherForge.exe^)
|
||||
set "CF_SCRIPT=%ROOT%\scripts\usb-start-cloudflared.ps1"
|
||||
if not exist "%CF_SCRIPT%" set "CF_SCRIPT=%ROOT%\..\scripts\usb-start-cloudflared.ps1"
|
||||
if exist "%CF_SCRIPT%" (
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%CF_SCRIPT%" -DeckRoot "%ROOT%"
|
||||
) else (
|
||||
echo [Tunnel] WARNING: scripts\usb-start-cloudflared.ps1 missing - repack usb folder.
|
||||
)
|
||||
echo.
|
||||
|
||||
:: Open browser after short delay
|
||||
start "" powershell -NoProfile -WindowStyle Hidden -Command "Start-Sleep -Seconds 3; Start-Process 'http://localhost:%SERVER_PORT%/'"
|
||||
|
||||
:: Launch server
|
||||
"%ROOT%\AetherForge.exe" -port %SERVER_PORT% -data "%ROOT%\data"
|
||||
:: Launch server (LAUNCH already started cloudflared above — tell server not to spawn a second copy)
|
||||
set "AF_TUNNEL_EXTERNAL=1"
|
||||
"%ROOT%\AetherForge.exe" -data "%ROOT%\data"
|
||||
set "EC=!ERRORLEVEL!"
|
||||
|
||||
if exist "%ROOT%\data\cloudflared.pid" (
|
||||
for /f "usebackq" %%P in ("%ROOT%\data\cloudflared.pid") do (
|
||||
taskkill /F /PID %%P >nul 2>nul
|
||||
)
|
||||
del "%ROOT%\data\cloudflared.pid" 2>nul
|
||||
)
|
||||
taskkill /F /IM cloudflared.exe >nul 2>nul
|
||||
|
||||
echo.
|
||||
if "!EC!"=="0" (
|
||||
echo [Server] Stopped normally.
|
||||
|
||||
Reference in New Issue
Block a user