🌏 同步github的hosts工具,支持多平台的图形化和命令行,内置客户端和服务端两种模式~ | Synchronize GitHub hosts tool, support multi-platform graphical and command line, built-in client and server modes
@echo off
set curpath=%~dp0
cd %curpath%
set filename=hosts
set url=https://hosts.gitcdn.top/hosts.txt
powershell curl -o "%filename%" "%url%"
copy .\%filename% C:\Windows\System32\drivers\etc\hosts
ipconfig /flushdns