5bf557ba6a83ec1206e75183b807f21e11190bed
X-Forwarded-For, X-Real-IP, and CF-Connecting-IP headers were blindly trusted, allowing attackers to bypass rate limiting by spoofing different IPs. Now only trusted when TRUSTED_PROXY env var is configured. Falls back to Node.js socket remoteAddress. Add tests verifying proxy headers are ignored without TRUSTED_PROXY and respected when it is set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
BotFights — bot competition arena with arcade fighting mode. Main repo (migrated from git.tx1138.com/lfg2025/botfight).
8.9 MiB
Languages
TypeScript
81.6%
Vue
16.7%
JavaScript
1.3%
CSS
0.2%