mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-03-13 13:39:02 -05:00
Fix for #11, Docker containers were not reachable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user