Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 730 Bytes

File metadata and controls

21 lines (17 loc) · 730 Bytes

FreeGithub

自动获取github相关网站的ip地址,解决github链接不畅通的问题,该项目的README会自动更新,大家可以直接复制使用。 在workflows/freegithub.yml文件中可以设置自动更新的时间,本代码设置的是一个月自动更新一次。大家可以按照自己的需求改写cron表达式

hosts列表

{{hosts}}

更新时间:{{time}}

修改本机的hosts文件

存放位置

  • Windows 系统:C:\Windows\System32\drivers\etc\hosts
  • Linux 系统:/etc/hosts
  • Mac(苹果电脑)系统:/etc/hosts

生效

  • Windows:在 CMD 窗口输入:ipconfig /flushdns
  • Linux 命令:sudo rcnscd restart
  • Mac 命令:sudo killall -HUP mDNSResponder