update to envs.net

This commit is contained in:
creme 2019-09-13 22:48:37 +02:00
parent 00cf1bbaa4
commit 473befd971
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
4 changed files with 12 additions and 12 deletions

View File

@ -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
```

View File

@ -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)

View File

@ -4,7 +4,7 @@ import (
"os"
"github.com/astaxie/beego"
_ "github.com/dfordsoft/ifconfig/routers"
_ "github.com/envs-net/ifconfig/routers"
)
const (

View File

@ -2,7 +2,7 @@ package routers
import (
"github.com/astaxie/beego"
"github.com/dfordsoft/ifconfig/controllers"
"github.com/envs-net/ifconfig/controllers"
)
func init() {