Skip to content

Conversation

@wrongecho
Copy link
Collaborator

  • Builds on PR Update functions.php for Caddy #1210 to always get the leftmost IP address
  • Cloudflare (HTTP_CF_CONNECTING_IP) must now be explicitly defined, otherwise people could add the HTTP_CF_CONNECTING_IP header to a non-Cloudflare host and spoof IPs
  • Tidy up the if/else logic a little

- Builds on PR #1210 to always get the leftmost IP address
- Cloudflare (HTTP_CF_CONNECTING_IP) must now be explicitly defined, otherwise people could add the HTTP_CF_CONNECTING_IP header to a non-Cloudflare host and spoof IPs
- Tidy up the if/else logic a little
@sonarqubecloud
Copy link

Copy link
Collaborator

@johnnyq johnnyq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah lets merge this in, it makes sense to me

@johnnyq johnnyq merged commit 8aa41ed into develop Jun 11, 2025
3 checks passed
@wrongecho wrongecho deleted the functions-ip-addr-leftmost branch August 30, 2025 14:34
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.

3 participants