Skip to content

Commit

Permalink
Bumbed version
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <vr@labstack.com>
  • Loading branch information
vishr committed Apr 13, 2018
1 parent d321ea1 commit 018d0e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IMAGE = labstack/armor
VERSION = 0.4.5
VERSION = 0.4.7

run:
ENV=development
Expand Down
2 changes: 1 addition & 1 deletion armor.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type (
)

const (
Version = "0.4.5"
Version = "0.4.7"
Website = "https://armor.labstack.com"
)

Expand Down
10 changes: 1 addition & 9 deletions http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package http

import (
"crypto/tls"
"net"
"net/http"
"path/filepath"
"time"
Expand Down Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion website/content/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Type `armor` in your terminal
___
/ _ | ______ _ ___ ____
/ __ |/ __/ ' \/ _ \/ __/
/_/ |_/_/ /_/_/_/\___/_/ v0.4.5
/_/ |_/_/ /_/_/_/\___/_/ v0.4.7
Uncomplicated, modern HTTP server
https://armor.labstack.com
Expand Down

0 comments on commit 018d0e1

Please sign in to comment.