Skip to content

Commit e8530bc

Browse files
committed
Fix endpoint construction when port is empty
1 parent 64df2f7 commit e8530bc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/ui/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ func Run(parentCtx context.Context, rt runtime.Runtime, version string, platform
3434
endpoint := "localhost.localstack.cloud"
3535
if cfg, err := config.Get(); err == nil && len(cfg.Containers) > 0 {
3636
emulatorName = cfg.Containers[0].DisplayName()
37-
endpoint = fmt.Sprintf("localhost.localstack.cloud:%s", cfg.Containers[0].Port)
37+
if cfg.Containers[0].Port != "" {
38+
endpoint = fmt.Sprintf("localhost.localstack.cloud:%s", cfg.Containers[0].Port)
39+
}
3840
}
3941

4042
app := NewApp(version, emulatorName, endpoint, cancel)

0 commit comments

Comments
 (0)