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

Correctly render hostname #410

Merged
merged 1 commit into from
Jun 8, 2018
Merged

Correctly render hostname #410

merged 1 commit into from
Jun 8, 2018

Conversation

leo
Copy link
Contributor

@leo leo commented Jun 8, 2018

πŸ€¦β€β™‚οΈ πŸ˜„

This was introduced in #407.

@leo leo added the patch label Jun 8, 2018
@leo leo requested a review from timothyis June 8, 2018 16:36
@leo leo changed the title Correctly apply host Correctly render hostname Jun 8, 2018
@leo leo merged commit 7ec9fd5 into master Jun 8, 2018
@leo leo deleted the localhost branch June 8, 2018 16:39
@@ -156,7 +156,8 @@ const startEndpoint = (endpoint, config) => {
if (typeof details === 'string') {
console.log(info(`Accepting connections at ${details}`));
} else if (typeof details === 'object' && details.port) {
console.log(info(`Accepting connections at http://${details.address}:${details.port}`));
const address = details.address === '::' ? 'localhost' : details.address;

Choose a reason for hiding this comment

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

I don't think that :: is the same as localhost. I believe ::1 is localhost, and :: is similar to 0.0.0.0 in IPv4.

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

Successfully merging this pull request may close these issues.

3 participants