Skip to content

自动获取 github 相关域名的 ip 地址,加速国内访问

License

Notifications You must be signed in to change notification settings

fengzhao/github-hosts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github 域名国内加速

# 自行编译使用
go get github.com/fengzhao/github-hosts
cd $GOPATH/src/github.com/fengzhao/github-hosts
go build .
mv 


# git方式
git clone https://github.com/fengzhao/github-hosts.git
cd github-hosts
go build .
mv github-hosts /usr/bin/


# 可以选择 3 种方式保存
#1. Create the host file to current directory (default)")
#2. Append the host to system host file in linux (/etc/hosts)")
#3. Append the host to system host file in windows (/mnt/c/Windows/System32/drivers/etc/hosts)")
# updated by 20210301
# GitHub Start
140.82.112.4 github.com
140.82.114.4 gist.github.com
185.199.111.153 assets-cdn.github.com
185.199.111.133 raw.githubusercontent.com
185.199.109.133 gist.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
185.199.111.133 camo.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.111.133 avatars1.githubusercontent.com
185.199.111.133 avatars2.githubusercontent.com
185.199.111.133 avatars3.githubusercontent.com
185.199.110.133 avatars4.githubusercontent.com
185.199.110.133 avatars5.githubusercontent.com
185.199.111.133 avatars6.githubusercontent.com
185.199.111.133 avatars7.githubusercontent.com
185.199.109.133 avatars8.githubusercontent.com
185.199.110.154 github.githubassets.com
# GitHub End

About

自动获取 github 相关域名的 ip 地址,加速国内访问

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 79.5%
  • Go 20.5%