Bug: duplicate entries in hosts file

Issue #10 resolved
Former user created an issue

It seems blockhosts.cmd creates duplicate entries in the hosts file.

I ran the script several times, and after the line "# Start of entries inserted by Ancile", the following lines are duplicated :

[...] 127.0.0.1 a.rad.msn.com 127.0.0.1 a.rad.msn.com 127.0.0.1 ac3.msn.com 127.0.0.1 ac3.msn.com [...] 127.0.0.1 ecn.dev.virtualearth.net 127.0.0.1 ecn.dev.virtualearth.net [...] 127.0.0.1 live.rads.msn.com 127.0.0.1 live.rads.msn.com [...] 127.0.0.1 msntest.serving-sys.com 127.0.0.1 msntest.serving-sys.com

I think blockhosts.cmd should check whether entries to be added are already present in the hosts file, regardless who/what put them there.

Mark T.

Comments (2)

  1. Matthew Linton

    Looks like a few duplicates got in when I merged hosts from crazy-max's lists. This will be removed in the next release

  2. Matthew Linton

    ADDED: 3192406 October 2016 Preview of Monthly Quality Rollup for Windows Server 2012 ADDED: 3192404 October 2016 Preview of Monthly Quality Rollup for Windows 8.1 and Windows Server 2012 R2 ADDED: 3192403 October 2016 Preview of Monthly Quality Rollup for Windows 7 SP1 and Windows Server 2008 R2 SP1 ADDED: 3184143 Remove software related to the Windows 10 free upgrade offer [UNNEEDED] Added configuration option to disable windows updates uninstall and hide Fixed issue of routes not being added under some configurations BUGFIX #8 : 127.0.0.1 instead of 0.0.0.0 (Feature request) Added configuration option to set host redirect IP for hosts file Added configuration option to set routes redirect IP for hosts file BUGFIX #10 : Bug: duplicate entries in hosts file

    → <<cset 08c94135ca06>>

  3. Log in to comment