From 473befd971ac4f4b59f03ef2884b747c4404ec4b Mon Sep 17 00:00:00 2001 From: creme Date: Fri, 13 Sep 2019 22:48:37 +0200 Subject: [PATCH] update to envs.net --- README.md | 12 ++++++------ controllers/default.go | 8 ++++---- main.go | 2 +- routers/router.go | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1420a3c..6eccfe9 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ ifconfig ======== -Yet Another ifconfig inspired by http://ifconfig.me, the online demo is [https://whois.envs.net](https://whois.envs.net). +Yet Another ifconfig inspired by http://ifconfig.me, the online demo is [https://ip.envs.net](https://ip.envs.net). -[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/cremesk/ifconfig/master/LICENSE) +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/envs-net/ifconfig/master/LICENSE) Install / Build ---- ```bash -wget -O /opt/ https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz -tar -C /usr/local -xzf /opt/go1.12.6.linux-amd64.tar.gz -git clone https://github.com/cremesk/ifconfig.git +wget -O /opt/ https://dl.google.com/go/go1.13.linux-amd64.tar.gz +tar -C /usr/local -xzf /opt/go1.13.linux-amd64.tar.gz +git clone https://github.com/envs-net/ifconfig.git -go get github.com/cremesk/ifconfig +go get github.com/envs.net/ifconfig go build main.go ``` diff --git a/controllers/default.go b/controllers/default.go index 6533b6d..03b28da 100644 --- a/controllers/default.go +++ b/controllers/default.go @@ -102,7 +102,7 @@ func (this *MainController) GetKeepAlive() { } func (this *MainController) GetAll() { - this.Data["Email"] = "missdeer@dfordsoft.com" + this.Data["Email"] = "hostmaster@envs.net" this.Data["UserAgent"] = this.Ctx.Request.UserAgent() ip := this.Ctx.Input.IP() names, err := net.LookupAddr(ip) @@ -169,7 +169,7 @@ type ifconfig struct { func (this *MainController) GetAllXML() { thisData := ifconfig{} - thisData.Email = "missdeer@dfordsoft.com" + thisData.Email = "hostmaster@envs.net" thisData.UserAgent = this.Ctx.Request.UserAgent() ip := this.Ctx.Input.IP() @@ -221,7 +221,7 @@ func (this *MainController) GetAllXML() { func (this *MainController) GetAllJSON() { thisData := make(map[string]interface{}) - thisData["Email"] = "missdeer@dfordsoft.com" + thisData["Email"] = "hostmaster@envs.net" thisData["UserAgent"] = this.Ctx.Request.UserAgent() ip := this.Ctx.Input.IP() names, err := net.LookupAddr(ip) @@ -275,7 +275,7 @@ func (this *MainController) Get() { this.Abort("404") return } - this.Data["Email"] = "missdeer@dfordsoft.com" + this.Data["Email"] = "hostmaster@envs.net" this.Data["UserAgent"] = this.Ctx.Request.UserAgent() ip := this.Ctx.Input.IP() names, err := net.LookupAddr(ip) diff --git a/main.go b/main.go index 5c7befb..f990ee9 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "os" "github.com/astaxie/beego" - _ "github.com/dfordsoft/ifconfig/routers" + _ "github.com/envs-net/ifconfig/routers" ) const ( diff --git a/routers/router.go b/routers/router.go index 21dd710..b7bbdd0 100644 --- a/routers/router.go +++ b/routers/router.go @@ -2,7 +2,7 @@ package routers import ( "github.com/astaxie/beego" - "github.com/dfordsoft/ifconfig/controllers" + "github.com/envs-net/ifconfig/controllers" ) func init() {