UpdateHosts-Github

command module
v0.0.0-...-93455d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

UpdateHosts-Github

起源于 update_hosts 项目,换了个golang做了份重构

使用方式

  • 下载二进制包,已管理员方式运行
Windows下报错没有修改文件权限的解决方案
方便但可能被恶意软件(比如我自己)利用的方案
  • 在文件资源管理器打开目录 C:\Windows\System32\drivers\etc
  • 选中 hosts 文件,选择 属性,将只读去掉 image
不方便但是可用的方案
  • 将工具生成的文件覆盖到C:\Windows\System32\drivers\etc\hosts

TODO

  • 进行dns查询
  • 筛选最快的ip
  • 写入到hosts文件
  • 以服务的方式运行

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址