Skip to content

Commit 97a194c

Browse files
authored
Merge pull request #503 from symfony-cli/panic-fix
Ensure we always have a scheme in Docker mapping
2 parents fcb097c + 958ba2e commit 97a194c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

envs/docker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ func (l *Local) dockerServiceToRelationship(client *docker.Client, container typ
460460
rels[""]["scheme"] = "http"
461461
} else if p.PrivatePort == 443 || p.PrivatePort == 8443 {
462462
rels[""]["scheme"] = "https"
463+
} else {
464+
return nil
463465
}
464466
return rels
465467
}

0 commit comments

Comments
 (0)