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

Urls with "localhost" returning false when Electron v23 or higher is installed #62

Open
DrSiemer opened this issue Oct 20, 2023 · 0 comments

Comments

@DrSiemer
Copy link

http://localhost:8080/ returns true when Electron v22 is installed. Any version of 23 or higher, it suddenly returns false. When using an ip address to reach the same destination, the url does return true. Could there be some conflict with more recent versions of Electron?

main.js:

const isReachable = require('is-reachable');
(async () => {
  console.log(await isReachable('http://localhost:8080/', { timeout: 2000 }));
  process.exit(0);
})();
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