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

Setting a new host removes line comments from existing hosts #46

Open
sseg opened this issue Jan 12, 2021 · 0 comments
Open

Setting a new host removes line comments from existing hosts #46

sseg opened this issue Jan 12, 2021 · 0 comments

Comments

@sseg
Copy link

sseg commented Jan 12, 2021

Given a hosts file like:

127.0.0.1        localhost
10.0.0.100     otherhost # some comment

Adding a new configuration with hostile set 127.0.0.1 newhost adds the new host but removes the line comment from the existing entry, leaving

127.0.0.1        localhost
10.0.0.100     otherhost
127.0.0.1        newhost

I would expect this tool to leave existing line comments intact. I have other tooling which depends on their presence.

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