txthinking / google-hosts

Google hosts generator
https://www.txthinking.com
MIT License
3.33k stars 1.25k forks source link

google-hosts 出来的ip会重定向到http://www.google.com/hangouts/ #79

Closed yuanboliu closed 9 years ago

yuanboliu commented 9 years ago

感觉这是谷歌在使坏,简直有点丧心病狂,不拿墙内用户当用户,这样访问似乎没问题: https://www.google.com/?gws_rd=ssl

txthinking commented 9 years ago

有时跑出来的IP会有这种情况, 尽管证书是*.google.com, 但是Google使此IP仅服务于hangouts 解决方案:

  1. $ cd scripts/
  2. $ ./filter.sh *.google.com | less 手动过滤 *.google.com的IP
  3. 过滤出的 IP, 从上面往下挨个手动测试写入本地hosts x.x.x.x www.google.com, 直到不被重定向到hangouts便为可用IP.
  4. 手动修改下跑出来hosts文件, 用过滤出的这个IP批量替换下那个让你重定向的错误IP
LGA1150 commented 9 years ago

@txthinking hangouts的IP有个特点,就是会开放5222端口 你可以通过检测5222端口是否开放来判断是否为hangouts的IP

txthinking commented 9 years ago

@LGA1150 Thank you

On Sun, Apr 12, 2015 at 1:17 PM LGA1150 notifications@github.com wrote:

@txthinking https://github.com/txthinking hangouts的IP有个特点,就是会开放5222端口 你可以通过检测5222端口是否开放来判断是否为hangouts的IP

— Reply to this email directly or view it on GitHub https://github.com/txthinking/google-hosts/issues/79#issuecomment-91993892 .