Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(rexctl): accept only true or false for the embedded worker

Hampus2e0b1429df1c
diff --git a/fluxer_rexctl/internal/stack/sizing.go b/fluxer_rexctl/internal/stack/sizing.go
index 61f2d60fd..121c8be23 100644
--- a/fluxer_rexctl/internal/stack/sizing.go
+++ b/fluxer_rexctl/internal/stack/sizing.go
@@ -135,10 +135,7 @@ func Sizing(hw Hardware, memory bool, fixed map[string]string) map[string]string
const EmbeddedWorkerVar = "FLUXER_API_EMBEDDED_WORKER"
func embeddedWorker(hw Hardware, fixed map[string]string) bool {
- if on, err := strconv.ParseBool(strings.TrimSpace(fixed[EmbeddedWorkerVar])); err == nil {
- return on
- }
- return false
+ return strings.ToLower(strings.TrimSpace(fixed[EmbeddedWorkerVar])) == "true"
}
func FoldWorker(hw Hardware, env, fixed map[string]string) map[string]string {