From: Steven Black Date: Sat, 3 Oct 2015 01:06:51 +0000 (-0400) Subject: Reverting the target host back to 0.0.0.0. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=da11d3239c632ce8c73434b9d4f93b098c4735e5;p=stevenblack-hosts.git Reverting the target host back to 0.0.0.0. --- diff --git a/readme_template.md b/readme_template.md index 2fd0ef340..e1328eb6f 100644 --- a/readme_template.md +++ b/readme_template.md @@ -47,8 +47,12 @@ For example, to nullify requests to some doubleclick.net servers, adding these l # etc... -## Why use `0` instead of `0.0.0.0` or `127.0.0.1`? -See [here](http://www.dslreports.com/forum/r16790135-Large-Hosts-file-0-0-0-0-or-127-0-0-1) and [here](http://www.dslreports.com/forum/r24621780-hosts-127-0-0-1-vs-0-0-0-0). Turns out using just `0` increases parsing speed, and it makes the hosts file smaller. +## Why use `0.0.0.0` instead of `127.0.0.1`? +Using `0.0.0.0` is faster. + +## Why not use just `0` instead of `0.0.0.0`? +We tried that. Using `0` doesn't work universally. + ## Location of your hosts file To modify your current `hosts` file, look for it in the following places and modify it with a text editor. diff --git a/updateHostsFile.py b/updateHostsFile.py index 82e151d51..88ab00641 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -25,7 +25,7 @@ UPDATE_URL_FILENAME = 'update.info' SOURCES = os.listdir(DATA_PATH) README_TEMPLATE = BASEDIR_PATH + '/readme_template.md' README_FILE = BASEDIR_PATH + '/readme.md' -TARGET_HOST = '0' +TARGET_HOST = '0.0.0.0' # Exclusions EXCLUSION_PATTERN = '([a-zA-Z\d-]+\.){0,}' #append domain the end