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

Extract hostname with URL #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Extract hostname with URL #45

wants to merge 1 commit into from

Conversation

da2x
Copy link
Contributor

@da2x da2x commented Mar 31, 2020

Don’t use the host (can contain :$port_number) but the hostname.

Don’t use the host (can contain `:$port_number`) but the hostname.
@sammacbeth
Copy link
Owner

This change would mean that sites hosted on a non-standard port would no longer have their dat version detected, correct? Was there a specific case you observed that this change aims to fix?

@da2x
Copy link
Contributor Author

da2x commented Apr 2, 2020

This change aligns the behaviour with dat-dns.

RFC5785 says to use HTTP or HTTPS but to discover services for a hostname. Web services running on non-standard ports aren’t supposed to be used for service auto-discovery.

@sammacbeth
Copy link
Owner

Thanks for the explanation. In that case shouldn't the discovery stop if a non-default port is given?

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