Skip to content

[Faucet] Improve IP handling - #3464

Merged
portuu3 merged 4 commits into
developfrom
fix/faucet/ip
Jul 18, 2025
Merged

[Faucet] Improve IP handling#3464
portuu3 merged 4 commits into
developfrom
fix/faucet/ip

Conversation

@flopez7

@flopez7 flopez7 commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Issue tracking

None

Context behind the change

Express was using the server's IP for all requests, causing everyone to be blocked by the rate limit as if they shared the same IP.
It was fixed by setting app.set('trust proxy', 1), so Express now correctly uses the real client IP for rate limiting

How has this been tested?

Deployed and made some requests to confirm it's working

Release plan

Deploy Faucet server

Potential risks; What to monitor; Rollback plan

None

@flopez7
flopez7 requested a review from portuu3 July 17, 2025 16:53
@flopez7 flopez7 self-assigned this Jul 17, 2025
@vercel

vercel Bot commented Jul 17, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faucet-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2025 5:03pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Jul 17, 2025 5:03pm
human-app ⬜️ Skipped (Inspect) Jul 17, 2025 5:03pm
human-dashboard-frontend ⬜️ Skipped (Inspect) Jul 17, 2025 5:03pm
staking-dashboard ⬜️ Skipped (Inspect) Jul 17, 2025 5:03pm

@portuu3
portuu3 merged commit c285fec into develop Jul 18, 2025
13 checks passed
@portuu3
portuu3 deleted the fix/faucet/ip branch July 18, 2025 06:40
@portuu3 portuu3 mentioned this pull request Jul 18, 2025
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants