We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 986ad76 commit 9d8897fCopy full SHA for 9d8897f
cmd/localstack/main.go
@@ -28,10 +28,11 @@ func GetEnvOrDie(env string) string {
28
29
func InitLsOpts() *LsOpts {
30
return &LsOpts{
31
- InteropPort: GetEnvOrDie("LOCALSTACK_INTEROP_PORT"),
32
RuntimeEndpoint: GetEnvOrDie("LOCALSTACK_RUNTIME_ENDPOINT"),
33
RuntimeId: GetEnvOrDie("LOCALSTACK_RUNTIME_ID"),
34
- InitTracingPort: GetEnvOrDie("LOCALSTACK_RUNTIME_TRACING_PORT"),
+ // optional with default
+ InteropPort: GetenvWithDefault("LOCALSTACK_INTEROP_PORT", "9563"),
35
+ InitTracingPort: GetenvWithDefault("LOCALSTACK_RUNTIME_TRACING_PORT", "9564"),
36
}
37
38
0 commit comments