You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##################################################################
# Content under this line is handled by hostctl. DO NOT EDIT.
##################################################################
# profile.on test
127.0.0.1 domain1
127.0.0.1 domain1
127.0.0.1 domain1
127.0.0.1 domain1
# end
Expected behavior
When running the command above, /tmp/test-hosts should only contain one uniq entry.
Example of what it should look like
##################################################################
# Content under this line is handled by hostctl. DO NOT EDIT.
##################################################################
# profile.on test
127.0.0.1 domain1
# end
System (please complete the following information):
OS: Mac
Version: 10.15.7 (19H15)
Additional context
hostctl --version
hostctl version 1.0.14
The text was updated successfully, but these errors were encountered:
ddl-jbrown
changed the title
hostctl adds entries for the same domain + ip while the uniq flag is set
hostctl adds entries for the same domain + ip
Nov 20, 2020
@ddl-jbrown thanks for bringing up this issue. I'm working on a solution with the --uniq param. But I'm thinking if it should always treat the pairs domain/ip as unique per profile as default. What do you think?
Describe the bug
hostctl appears to not be idempotent when it adds entries for the same domain + ip when run multiple times.
To Reproduce
Run this command multiple times (
--uniq
doesn't seem to make a difference)Current behavior
Expected behavior
When running the command above,
/tmp/test-hosts
should only contain one uniq entry.Example of what it should look like
System (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: