-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
correctly handle WebTransport addresses without certhashes #2239
Conversation
options.go
Outdated
@@ -262,6 +262,7 @@ func AddrsFactory(factory config.AddrsFactory) Option { | |||
if cfg.AddrsFactory != nil { | |||
return fmt.Errorf("cannot specify multiple address factories") | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
// NormalizeMultiaddr returns a multiaddr suitable for equality checks. | ||
// If the multiaddr is a webtransport component, it removes the certhashes. | ||
func (h *BasicHost) NormalizeMultiaddr(addr ma.Multiaddr) ma.Multiaddr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this would move into the address pipeline, once we have it, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Anywhere that isn't adding another method to BasicHost
Fixes #2233. Closes #2227. Fixes #2223.