Skip to content

Commit 9d8897f

Browse files
use defaults for internal ports
1 parent 986ad76 commit 9d8897f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/localstack/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ func GetEnvOrDie(env string) string {
2828

2929
func InitLsOpts() *LsOpts {
3030
return &LsOpts{
31-
InteropPort: GetEnvOrDie("LOCALSTACK_INTEROP_PORT"),
3231
RuntimeEndpoint: GetEnvOrDie("LOCALSTACK_RUNTIME_ENDPOINT"),
3332
RuntimeId: GetEnvOrDie("LOCALSTACK_RUNTIME_ID"),
34-
InitTracingPort: GetEnvOrDie("LOCALSTACK_RUNTIME_TRACING_PORT"),
33+
// optional with default
34+
InteropPort: GetenvWithDefault("LOCALSTACK_INTEROP_PORT", "9563"),
35+
InitTracingPort: GetenvWithDefault("LOCALSTACK_RUNTIME_TRACING_PORT", "9564"),
3536
}
3637
}
3738

0 commit comments

Comments
 (0)