-
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
implement the new mDNS spec, move the old mDNS implementation #1161
Conversation
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 have some suggestions but nothing blocking.
p2p/discovery/mdns.go
Outdated
s.mdnsInstance(), | ||
s.serviceName, | ||
mdnsDomain, | ||
4001, |
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.
Can we leave a comment saying "this port doesn't actually matter, only the TXT records are used?"
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.
Does this need to be lower case?
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.
Done. Not sure what you're referring to when you ask about lower case.
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.
Ah, sorry, commented on the wrong line. I was referring to the peer ID in the line below.
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.
LGTM!
p2p/discovery/mdns.go
Outdated
s.mdnsInstance(), | ||
s.serviceName, | ||
mdnsDomain, | ||
4001, |
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.
Ah, sorry, commented on the wrong line. I was referring to the peer ID in the line below.
p2p/mdns/mdns.go
Outdated
@@ -0,0 +1,216 @@ | |||
package mdns |
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 was actually thinking discovery/mdns to better organize the packages. But this also works.
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.
Yes, that's better. Let's do that.
Closes #1125. Fixes #176. Fixes #253. Fixes #623. Probably fixes #894. Probably fixes #469.