Skip to content

Conversation

@kadirgun
Copy link

@kadirgun kadirgun commented Oct 1, 2025

This pull request introduces a new method to the Context struct to improve access to the local address of a connection. The main change is the addition of a LocalAddr method, which ensures that local address retrieval works correctly even when connections are wrapped (such as in MITM scenarios).

Network context and connection handling:

  • Added LocalAddr method to the Context struct in context.go, which delegates to the topmost parent context to transparently support MITM-wrapped connections.

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

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

Looks good to me 🤙

💡 To request another review, post a new comment with "/windsurf-review".

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.

1 participant