credmp / hed

Hosts EDitor, it will add/update/delete host entries for you
https://www.arjenwiersma.nl
GNU General Public License v3.0
13 stars 3 forks source link

Entries are double added if they already exist #8

Closed credmp closed 3 years ago

credmp commented 3 years ago

Reproduce:

hed  --file ../samples/kali-default.txt add example.com 127.0.1.1
hed  --file ../samples/kali-default.txt add example.com 127.0.2.1

output is:

127.0.1.1   example.com 
127.0.2.1   example.com

while it should signal that example.com is already in the hosts file

credmp commented 3 years ago

Resolved in commit bdbeec73cc8af20f9a54c2a377a2e56146b5198f