Skip to content

seek4self/replaceHosts

Repository files navigation

replacer

🌍 English简体中文

GitHub Workflow Status GitHub GitHub release (latest by date)

The tool to replace the local hosts. Regularly pull github hosts from ineo6/hosts and update to local hosts

usage

Notice: Running this software under Windows environment will be blocked by Microsoft Defender or anti-virus software. Please add this software to the trust list or white list.
MUST be run as administrator or sudo

$ ./replacer -h
The tool to replace the local hosts.
Version: v1.0.1
Usage of ./replacer:
  -D string
        domain in local hosts. (default "github")
  -H string
        the new host ip for the '-D'(input domain) flag. (default "0")
  -d    run app as a daemon.
  -dd
        disable domain hosts.
  -i string
        replace interval. example: '1h30m', 'h' for hour, and 'm' for minute. (default "2h")
  -one
        replace github hosts once.
  -v    print version.