Skip to content

Commit 018d0e1

Browse files
committed
Bumbed version
Signed-off-by: Vishal Rana <[email protected]>
1 parent d321ea1 commit 018d0e1

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/armor
2-
VERSION = 0.4.5
2+
VERSION = 0.4.7
33

44
run:
55
ENV=development

armor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type (
9292
)
9393

9494
const (
95-
Version = "0.4.5"
95+
Version = "0.4.7"
9696
Website = "https://armor.labstack.com"
9797
)
9898

http/http.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package http
22

33
import (
44
"crypto/tls"
5-
"net"
65
"net/http"
76
"path/filepath"
87
"time"
@@ -97,14 +96,7 @@ func (h *HTTP) Start() error {
9796
a := h.armor
9897
e := h.echo
9998
if a.DefaultConfig {
100-
addrs, _ := net.InterfaceAddrs()
101-
for _, addr := range addrs {
102-
if ipnet, ok := addr.(*net.IPNet); ok {
103-
if ipnet.IP.To4() != nil {
104-
a.Colorer.Printf("⇨ serving from %s\n", a.Colorer.Green("http://"+ipnet.IP.String()+a.Address))
105-
}
106-
}
107-
}
99+
a.Colorer.Printf("⇨ serving from %s\n", a.Colorer.Green("http://localhost"+a.Address))
108100
} else {
109101
a.Colorer.Printf("⇨ http server started on %s\n", a.Colorer.Green(a.Address))
110102
}

website/content/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Type `armor` in your terminal
3838
___
3939
/ _ | ______ _ ___ ____
4040
/ __ |/ __/ ' \/ _ \/ __/
41-
/_/ |_/_/ /_/_/_/\___/_/ v0.4.5
41+
/_/ |_/_/ /_/_/_/\___/_/ v0.4.7
4242
4343
Uncomplicated, modern HTTP server
4444
https://armor.labstack.com

0 commit comments

Comments
 (0)