Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identify: fix normalization of interface listen addresses #2250

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

MarcoPolo
Copy link
Collaborator

@MarcoPolo MarcoPolo commented Apr 10, 2023

The previous fix in #2235 was so close, but didn't catch this bug since ListenAddrs == InterfaceListeneAddrs in the mocknet.

@MarcoPolo MarcoPolo marked this pull request as draft April 10, 2023 22:27
@MarcoPolo MarcoPolo marked this pull request as ready for review April 11, 2023 01:51
@marten-seemann
Copy link
Contributor

What’s the issue that this PR intends to solve?

Comment on lines 371 to 374
type connMultiaddrProvider interface {
RemoteMultiaddr() ma.Multiaddr
LocalMultiaddr() ma.Multiaddr
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Reuse this interface?

// ConnMultiaddrs is an interface mixin for connection types that provide multiaddr
// addresses for the endpoints.
type ConnMultiaddrs interface {
// LocalMultiaddr returns the local Multiaddr associated
// with this connection
LocalMultiaddr() ma.Multiaddr
// RemoteMultiaddr returns the remote Multiaddr associated
// with this connection
RemoteMultiaddr() ma.Multiaddr
}

@marten-seemann marten-seemann changed the title Fix obsAddr listenAddrs comparison in maybeRecordObservation identify: fix normalization of interface listen addresses Apr 12, 2023
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