Skip to content

Conversation

manulaiko
Copy link

Implementation of issue #133
Although now any URL that matches http://([a-zA-Z0-9]*)/ is now treated as localhost, you can still configure hosts file to point any name with sub-domains to 127.0.0.1 but they will not be recognized as localhost and they will result in a google search.

This could be fixed by assuming that if the URL ends with /, it's a localhost, or by actually checking that the URL translates to 127.0.0.1

*http://localhost/* does not redirects to *http://127.0.0.1/* and it can be any name that doesn't contains a domain/subdomain.
*http://localhost/* does not redirects to *http://127.0.0.1/* and it can be any name that doesn't contains a domain/subdomain.
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