Skip to content

Commit

Permalink
Handle numeric 3rd party service use of HTTP_EXPOSE or HTTPS_EXPOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed May 15, 2020
1 parent 3e99c24 commit 16a6d36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ddevapp/ddevapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ func (app *DdevApp) Describe() (map[string]interface{}, error) {
// Extract HTTP_EXPOSE and HTTPS_EXPOSE for additional info
for envName, envVal := range env {
if envName == "HTTP_EXPOSE" || envName == "HTTPS_EXPOSE" {
portSpecs := strings.Split(envVal.(string), ",")
envValStr := fmt.Sprintf("%s", envVal)
portSpecs := strings.Split(envValStr, ",")
// There might be more than one exposed UI port, but this only handles the first listed,
// most often there's only one.
if len(portSpecs) > 0 {
Expand Down

0 comments on commit 16a6d36

Please sign in to comment.