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

implement the new mDNS spec, move the old mDNS implementation #1161

Merged
merged 7 commits into from
Aug 18, 2021

Conversation

marten-seemann
Copy link
Contributor

@marten-seemann marten-seemann commented Aug 17, 2021

Closes #1125. Fixes #176. Fixes #253. Fixes #623. Probably fixes #894. Probably fixes #469.

Copy link
Member

@Stebalien Stebalien left a 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 Show resolved Hide resolved
p2p/discovery/mdns.go Show resolved Hide resolved
p2p/discovery/mdns.go Outdated Show resolved Hide resolved
p2p/discovery/mdns.go Outdated Show resolved Hide resolved
p2p/discovery/mdns.go Outdated Show resolved Hide resolved
s.mdnsInstance(),
s.serviceName,
mdnsDomain,
4001,
Copy link
Member

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?"

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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/discovery_legacy/mdns.go Outdated Show resolved Hide resolved
p2p/discovery_legacy/mdns.go Outdated Show resolved Hide resolved
p2p/discovery/mdns.go Outdated Show resolved Hide resolved
p2p/discovery/mdns.go Outdated Show resolved Hide resolved
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

LGTM!

s.mdnsInstance(),
s.serviceName,
mdnsDomain,
4001,
Copy link
Member

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
Copy link
Member

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants