Skip to content

Commit

Permalink
use defaults for internal ports
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikschubert committed Mar 28, 2022
1 parent 986ad76 commit 9d8897f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/localstack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ func GetEnvOrDie(env string) string {

func InitLsOpts() *LsOpts {
return &LsOpts{
InteropPort: GetEnvOrDie("LOCALSTACK_INTEROP_PORT"),
RuntimeEndpoint: GetEnvOrDie("LOCALSTACK_RUNTIME_ENDPOINT"),
RuntimeId: GetEnvOrDie("LOCALSTACK_RUNTIME_ID"),
InitTracingPort: GetEnvOrDie("LOCALSTACK_RUNTIME_TRACING_PORT"),
// optional with default
InteropPort: GetenvWithDefault("LOCALSTACK_INTEROP_PORT", "9563"),
InitTracingPort: GetenvWithDefault("LOCALSTACK_RUNTIME_TRACING_PORT", "9564"),
}
}

Expand Down

0 comments on commit 9d8897f

Please sign in to comment.