guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!

Home Page:http://guumaster.github.io/hostctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comments turn into entries

Zaffy opened this issue · comments

commented

Describe the bug

In this hosts file you can find the following line:

# 0.0.0.0  www.youtube-nocookie.com #[affects various videos]

When you add the file with hostctl, it becomes:

0.0.0.0 www.youtube-nocookie.com
0.0.0.0 #[affects
0.0.0.0 various
0.0.0.0 videos]

To Reproduce

Download the list and add it via hostctl add

Expected behavior
Comments should not turn into entries.
They should be either stripped altogether or preserved.

System (please complete the following information):

  • OS: archlinux
  • hostctl version 1.0.14 from AUR