diff --git a/Makefile b/Makefile index 9a22eca..e37863c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ IMAGE = labstack/armor -VERSION = 0.4.5 +VERSION = 0.4.7 run: ENV=development diff --git a/armor.go b/armor.go index 2ee9f7a..98fb168 100644 --- a/armor.go +++ b/armor.go @@ -92,7 +92,7 @@ type ( ) const ( - Version = "0.4.5" + Version = "0.4.7" Website = "https://armor.labstack.com" ) diff --git a/http/http.go b/http/http.go index 32255c5..07de0ac 100644 --- a/http/http.go +++ b/http/http.go @@ -2,7 +2,6 @@ package http import ( "crypto/tls" - "net" "net/http" "path/filepath" "time" @@ -97,14 +96,7 @@ func (h *HTTP) Start() error { a := h.armor e := h.echo if a.DefaultConfig { - addrs, _ := net.InterfaceAddrs() - for _, addr := range addrs { - if ipnet, ok := addr.(*net.IPNet); ok { - if ipnet.IP.To4() != nil { - a.Colorer.Printf("⇨ serving from %s\n", a.Colorer.Green("http://"+ipnet.IP.String()+a.Address)) - } - } - } + a.Colorer.Printf("⇨ serving from %s\n", a.Colorer.Green("http://localhost"+a.Address)) } else { a.Colorer.Printf("⇨ http server started on %s\n", a.Colorer.Green(a.Address)) } diff --git a/website/content/guide.md b/website/content/guide.md index e7a2fb6..f3784eb 100644 --- a/website/content/guide.md +++ b/website/content/guide.md @@ -38,7 +38,7 @@ Type `armor` in your terminal ___ / _ | ______ _ ___ ____ / __ |/ __/ ' \/ _ \/ __/ -/_/ |_/_/ /_/_/_/\___/_/ v0.4.5 +/_/ |_/_/ /_/_/_/\___/_/ v0.4.7 Uncomplicated, modern HTTP server https://armor.labstack.com