use [ipv6] in hosts

This commit is contained in:
James Feng Cao 2023-04-01 15:15:10 +08:00
parent 62f3a10994
commit 5dcba20904
18 changed files with 54 additions and 33 deletions

View file

@ -37,7 +37,11 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<description>The hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked.
The file &amp;quot;hosts&amp;quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.com&amp;quot; and &amp;quot;finance.yahoo.com&amp;quot;. If the length of the last 2 segments is less than 7, such as &amp;quot;com.</description>
Here is an example line with ipv4:
172.67.157.211 torapp.eu.org
or with ipv6:
[2606:4700:3037::6815:8c3] torapp.eu.org
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.</description>
</item>
<item>