mirror of
https://github.com/goodhosts/hostsfile.git
synced 2026-04-27 15:35:50 +03:00
[GH-ISSUE #18] Multiple hosts per line added on Windows causes problems #8
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hostsfile#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomjn on GitHub (Mar 23, 2021).
Original GitHub issue: https://github.com/goodhosts/hostsfile/issues/18
I had users reporting that sites they were using would not load with 16 host entries on a line.
Further research indicates that Windows has an upper limit of 9 alias' per entry
#17 attempts to fix this
@tomjn commented on GitHub (Aug 12, 2021):
@luthermonson do you have any idea why this is happening? I can see that there is code that attempts to implement this, but it is non-functional. I have users opening notepad.exe as administrators to fix this issue manually because goodhosts adds too many hosts on the same file when using the
vagrant-goodhostplugin@gbraad commented on GitHub (Sep 9, 2021):
Will try to propose a fix. Seems this issue has been open for quite some time.
A post-process might be a possible workaround? You can try Windows Host File Optimizer or a powershell script for this.
@tomjn commented on GitHub (Sep 9, 2021):
@gbraad see https://github.com/goodhosts/hostsfile/pull/17#discussion_r687281993 I think that's what needs to happen