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

Use IP instead of hostname #44

Open
hckhanh opened this issue Jul 9, 2020 · 2 comments
Open

Use IP instead of hostname #44

hckhanh opened this issue Jul 9, 2020 · 2 comments

Comments

@hckhanh
Copy link

hckhanh commented Jul 9, 2020

When I try to use IP instead of the domain name. It returns false even if the IP has existed. Can we support it?

@sindresorhus
Copy link
Owner

Sure. I think it was just an oversight to not support that. PR welcome.

@tukusejssirs
Copy link

I had similar issue on CentOS 8 (non-Stream, minimal server), but not on Fedora 31 (workstation).

The workaround is to pass the port number to the IP address (e.g. 192.168.1.5:80); then it works as expected.

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

No branches or pull requests

3 participants