Skip to content

Conversation

@hvardhan-msft
Copy link
Collaborator

TunnelInfo.addr is set in src/common/authentication/traits.perform_authentication using &tunnel.addr(), but unfortunately this returns the result of the default implementation, because the Deref type doesn't have an implementation of addr(). This PR tries to fix that.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where TunnelUplink::addr() was returning the default implementation (TunnelAddressInfo::Unidentified) when called through pointer types instead of delegating to the underlying concrete type's implementation. The fix adds an addr() method to the blanket TunnelUplink implementation for Deref types that properly delegates to the target type.

  • Adds addr() delegation to the blanket TunnelUplink implementation for Deref types
  • Ensures that concrete implementations like QuinnTunnel::addr() are properly called through pointers
  • Fixes authentication code that was incorrectly capturing TunnelAddressInfo::Unidentified instead of actual addresses

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hvardhan-msft hvardhan-msft reopened this Nov 25, 2025
@iamvamsikrishnad iamvamsikrishnad merged commit 59eb882 into microsoft:main Nov 25, 2025
7 checks passed
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