Browse Source

Fix #182, add IPv4 localhost

lennylxx 6 years ago
parent
commit
679ef17c0e
2 changed files with 5 additions and 3 deletions
  1. 3 2
      hosts
  2. 2 1
      merge_snippets.sh

+ 3 - 2
hosts

@@ -9,11 +9,12 @@
 ## +-------------------------  >>d(' _ ')b<<  -------------------------+
 ## |                                                                   |
 ## |         Project: https://github.com/lennylxx/ipv6-hosts           |
-## |         Update : Sun, 10 Dec 2017 22:41:27 +0800                  |
+## |         Update : Mon, 11 Dec 2017 20:49:31 +0800                  |
 ## |                                                                   |
 ## +-------------------------------------------------------------------+
 
-::1 localhost
+127.0.0.1 localhost
+::1 localhost ip6-localhost ip6-loopback
 
 ## Google.com
 2001:4860:4860::8888 google-public-dns-a.google.com

+ 2 - 1
merge_snippets.sh

@@ -34,7 +34,8 @@ printf "\
 
 unset LC_ALL
 
-printf "\r\n::1 localhost\r\n\r\n" >> $new_hosts_file
+printf "\r\n127.0.0.1 localhost\r\n" >> $new_hosts_file
+printf "::1 localhost ip6-localhost ip6-loopback\r\n\r\n" >> $new_hosts_file
 
 cat snippets/??_*.txt >> $new_hosts_file