mirror of https://github.com/gofiber/fiber.git
Fix docker host addr
parent
be4cd8de1c
commit
72786471ce
4
app.go
4
app.go
|
@ -446,7 +446,7 @@ func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error {
|
|||
addr = strconv.Itoa(port)
|
||||
}
|
||||
if !strings.Contains(addr, ":") {
|
||||
addr = "127.0.0.1:" + addr
|
||||
addr = ":" + addr
|
||||
}
|
||||
// Update fiber server settings
|
||||
app.init()
|
||||
|
@ -646,7 +646,7 @@ func (app *App) startupMessage(addr string, tls bool, pids string) {
|
|||
ppid = os.Getppid()
|
||||
)
|
||||
if host == "" {
|
||||
host = "127.0.0.1"
|
||||
host = "0.0.0.0"
|
||||
}
|
||||
if tls {
|
||||
tlsStr = "TRUE"
|
||||
|
|
Loading…
Reference in New Issue