Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldlac committed Oct 19, 2024
1 parent cbe9f36 commit a552043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions readme_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ with GitHub download links.

| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
| ---------------- | :----: | :-------: | :------------: | :---------------: |

@TOCROWS@

**Expectation**: These unified hosts files should serve all devices, regardless
Expand All @@ -61,6 +62,7 @@ included:

| Host file source | Home page | Raw hosts | License | Issues | Description |
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |

@SOURCEROWS@

## Extensions
Expand Down Expand Up @@ -196,8 +198,7 @@ hosts files to include in the amalgamation. Example: `--extensions porn` or
active when `--replace` is also active.

`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`. Alternatively, you can pass `none` or any string
that doesn't start with a number to remove the target IP from the hosts file.
target. Default is `0.0.0.0`. Alternatively, you can pass `none` to remove the target IP from the hosts file.
This is useful when you want to omit a target IP altogether.

`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
Expand Down Expand Up @@ -455,7 +456,7 @@ the
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
for more details.

Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
Disabling the DNS Cache Service can cause issues with services and applications like _WSL_ and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the _C++_ Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the _PowerShell_ compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.

## Reloading hosts file

Expand Down Expand Up @@ -616,7 +617,7 @@ devices under a variety of operating systems.
This is a cross-platform command line utility to help install/update hosts
files found at this repository.
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a _C++_ Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
provides a tool to build block lists from local and remote lists in common
formats.
Expand Down
4 changes: 2 additions & 2 deletions updateHostsFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ def main():
exclusion_regexes = settings["exclusionregexes"]
source_data_filename = settings["sourcedatafilename"]
no_unified_hosts = settings["nounifiedhosts"]

settings["targetip"] = (
None if not str(settings["targetip"][0]).isnumeric() else settings["targetip"]
None if str(settings["targetip"]).lower() == "none" else settings["targetip"]
)

update_sources = prompt_for_update(freshen=settings["freshen"], update_auto=auto)
Expand Down

0 comments on commit a552043

Please sign in to comment.