mirror of
https://github.com/goodhosts/hostsfile.git
synced 2026-04-27 07:25:53 +03:00
[GH-ISSUE #42] Calling HostsPerLine() before Add() results in a panic with plain vanilla macOS hosts file #15
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#15
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 @rfay on GitHub (Apr 6, 2023).
Original GitHub issue: https://github.com/goodhosts/hostsfile/issues/42
If you call HostsPerLine() before Add(), (with a plain-vanilla macOS starter hosts file) you get a panic, like this:
This is demonstrated in a test repo: https://github.com/rfay/goodhostsbug/tree/broken
It's fixed by changing HostsPerLine() to later, see https://github.com/rfay/goodhostsbug