Skip to content

Commit 78ac5fc

Browse files
author
Almaz Sharipov
committed
fixed binding to all ip addresses
1 parent 0dc6520 commit 78ac5fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ func main() {
1919
// Application params taken from OS environment
2020
app.Log.SetLevel(logrus.Level(app.GetEnvInt("LOG_LEVEL", 2)))
2121
bindAddress := app.GetEnvString("BIND_ADDR", "localhost")
22+
if bindAddress == "*" {
23+
bindAddress = ""
24+
}
2225
bindPort := app.GetEnvInt("BIND_PORT", 8080)
2326
db.MaxRows = uint32(app.GetEnvInt("MAX_ROWS", 10000))
2427
tlsCert := app.GetEnvString("TLS_CERT", "")

0 commit comments

Comments
 (0)