From bccedcb980879433e16c9a1c0ebf1cfdf99bd685 Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Mon, 3 May 2021 23:02:09 +0200 Subject: [PATCH] Fix for #11, Docker containers were not reachable --- internal/configuration/Configuration.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/configuration/Configuration.go b/internal/configuration/Configuration.go index 4d10038..129d656 100644 --- a/internal/configuration/Configuration.go +++ b/internal/configuration/Configuration.go @@ -244,9 +244,10 @@ func askForPassword() string { } // Asks if the server shall be bound to 127.0.0.1 or loads it from env and returns result as bool +// Always returns environment.IsFalse for Docker environment func askForLocalOnly() string { if environment.IsDocker != "false" { - return environment.IsTrue + return environment.IsFalse } fmt.Print("Bind port to localhost only? [Y/n]: ") envLocalhost := Environment.WebserverLocalhost