Comments (3)
@rfay @C0mp4ct this is now supported with the HostsPerLine which can take an int to split, the default behavior in the Clean func will be to pass in the OS specific param, windows is 9 per line and the rest are unlimited.
Additionally, this is merged up to v1.0.5 of the cli, you can use --clean on add/remove or the clean command itself will just scrub what you have in place.
https://github.com/goodhosts/cli/releases/tag/v.1.0.5
I'm closing this issue, if this does not solve the problems please feel free to open a new one with anything that comes from this update.
from hostsfile.
This is great info, thanks I'll patch it when I find some time.
from hostsfile.
There's loads more info on this in the original issue, lextoumbourou/goodhosts#11 - It seems that multiple lines would help solve the problem.
from hostsfile.
Related Issues (16)
- Please keep commit history and versioning! HOT 1
- Q: Why is the position of a host on the line used? HOT 2
- Add/Remove/Contains functions for HostsLine
- Multiple hosts per line added on Windows causes problems HOT 3
- License? HOT 1
- Github action golang ci no longer found HOT 1
- Deputize maintainers/reviewers/testers HOT 2
- Duplicate lines in hostsfile after `Flush()` HOT 1
- Bug: Adding a host can add duplicates with differing IPs
- Regression - panic when calling Clear and then Add
- Panic: goodhosts does not check slice length during removal HOT 6
- HostsPerLine is destructive HOT 15
- Calling HostsPerLine() before Add() results in a panic with plain vanilla macOS hosts file
- Limiting hosts per line works for first line, but after that each item goes on its own line HOT 10
- Comments are not published on Flush HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hostsfile.