Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tinycedar/lily
Hosts管理工具,双击切换立即生效,告别重启浏览器! Hosts manager takes effect immediately on switch
https://github.com/tinycedar/lily
go golang hosts switch
Last synced: 21 days ago
JSON representation
Hosts管理工具,双击切换立即生效,告别重启浏览器! Hosts manager takes effect immediately on switch
- Host: GitHub
- URL: https://github.com/tinycedar/lily
- Owner: tinycedar
- License: mit
- Created: 2016-06-22T14:13:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-23T16:56:15.000Z (about 6 years ago)
- Last Synced: 2024-06-19T01:52:32.849Z (6 months ago)
- Topics: go, golang, hosts, switch
- Language: Go
- Homepage:
- Size: 167 KB
- Stars: 71
- Watchers: 5
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lily [![GitHub release](https://img.shields.io/github/release/tinycedar/lily.svg)](https://github.com/tinycedar/lily/releases) [![license](https://img.shields.io/github/license/tinycedar/lily.svg)]() [![Build Status](https://travis-ci.org/tinycedar/lily.svg?branch=master)](https://travis-ci.org/tinycedar/lily)
Hosts manager takes effect immediately on switch
![](https://ws2.sinaimg.cn/large/006tNbRwgy1fkuanxlo29j30qa0etq2y.jpg)
## Motivation
We usually have to switch between a bunch of test environments which have same domains but different IPs.
Since it's troublesome to modify hosts directly, we use some tools to manage it.
I've tried HostAdmin, SwitchHosts!, HostManager and so forth but found that they all have the same problem: browser relaunch
is required in order to take effect after switch.So I decide to solve this problem by means of "Reinventing the wheel", and as a Go enthusiast, I choose Go to develop it.
If you're interested in this project please fork it and pull request is preferred :)## Features
* Takes effect immediately on switch
* Single process
* Realtime notification
* Hosts config saved automatically once you made modification
* Written purely in Go## Supported browsers
* Chrome
* Firefox
* Opera
* Sogou Explorer (搜狗高速浏览器)
* QQ Browser (QQ浏览器)
* 360 Browser (360极速浏览器)
* 360 Secure Browser (360安全浏览器)
* Liebao (Cheetah) Browser (猎豹安全浏览器)
* Maxthon (遨游)## Roadmap
Only Windows is supported recently, macOS and Linux will be supported in the near future.
Probably I will use [Electron](http://electron.atom.io/) framework to implement cross-platform feature.## Install
Download binary in [Releases](https://github.com/tinycedar/lily/releases)## Build
```
go get -u -v github.com/tinycedar/lily
go build -ldflags="-H windowsgui"
```