Handle port bindings correctly when using 127.0.0.1

closes pterodactyl/panel#2307
This commit is contained in:
Dane Everitt
2020-09-07 15:33:47 -07:00
parent 77cf57d1ea
commit 5bead443ad
3 changed files with 46 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ func (e *Environment) Create() error {
tmpfsSize := strconv.Itoa(int(config.Get().Docker.TmpfsSize))
hostConf := &container.HostConfig{
PortBindings: a.Bindings(),
PortBindings: a.DockerBindings(),
// Configure the mounts for this container. First mount the server data directory
// into the container as a r/w bind.