Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Aug 9, 2025

When creating a new session, the client's IP address and user-agent are now stored in the session's page object. This ensures accurate tracking of client information for each session.

Summary by Sourcery

Store client IP and user-agent on the session page when initializing a new session and apply this context before executing the before_main hook.

New Features:

  • Persist client IP address in the session's page object.
  • Persist client user-agent in the session's page object.

Enhancements:

  • Run the before_main hook after setting the session context (IP and user-agent) to ensure accurate client information is available.

When creating a new session, the client's IP address and user-agent are now stored in the session's page object. This ensures accurate tracking of client information for each session.
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

@cloudflare-workers-and-pages
Copy link

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 00a3fb5
Status: ✅  Deploy successful!
Preview URL: https://6892adf9.flet-docs.pages.dev
Branch Preview URL: https://v1-fix-client-ip.flet-docs.pages.dev

View logs

@FeodorFitsner FeodorFitsner merged commit e5f62ae into main Aug 9, 2025
3 of 4 checks passed
@FeodorFitsner FeodorFitsner deleted the v1-fix-client-ip branch August 9, 2025 23:55
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