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

Subdomains don't work. #4

Closed
ghost opened this issue May 5, 2020 · 1 comment
Closed

Subdomains don't work. #4

ghost opened this issue May 5, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented May 5, 2020

Right now I am working on a project that needs to check if the host address is working. Apparently if I use the host (eg http: // localhost) it works correctly, but when I want to check the subdomain (http: //subdomain.localhost), it doesn't work. Instead from the Chrome or Postman browser, this if the subdomain works.

@sindresorhus
Copy link
Owner

Seems to work for me:

test('domain - with subdomain', async t => {
t.true(await isPortReachable(80, {host: 'blog.sindresorhus.com'}));
});

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

No branches or pull requests

1 participant