File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 11IMAGE = labstack/armor
2- VERSION = 0.4.5
2+ VERSION = 0.4.7
33
44run :
55 ENV=development
Original file line number Diff line number Diff line change 9292)
9393
9494const (
95- Version = "0.4.5 "
95+ Version = "0.4.7 "
9696 Website = "https://armor.labstack.com"
9797)
9898
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package http
22
33import (
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 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Type `armor` in your terminal
3838 ___
3939 / _ | ______ _ ___ ____
4040 / __ | / __/ ' \/ _ \/ __/
41- /_/ |_/_/ /_/_/_/\___/_/ v0.4.5
41+ /_/ |_/_/ /_/_/_/\___/_/ v0.4.7
4242
4343Uncomplicated, modern HTTP server
4444https://armor.labstack.com
You can’t perform that action at this time.
0 commit comments