diff --git a/utils/config.go b/utils/config.go index bb472c4..1f08640 100644 --- a/utils/config.go +++ b/utils/config.go @@ -51,8 +51,8 @@ func LoadConfig() { Addr: addr, ImgurId: imgurId, ProtocolDetection: os.Getenv("PROTOCOL_DETECTION") == "true" || os.Getenv("PROTOCOL_DETECTION") == "1", - Secure: os.Getenv("SECURE") == "true", - FiberPrefork: os.Getenv("FIBER_PREFORK") == "true", + Secure: os.Getenv("SECURE") == "true" || os.Getenv("SECURE") == "1", + FiberPrefork: os.Getenv("FIBER_PREFORK") == "true" || os.Getenv("FIBER_PREFORK") == "1", ForceWebp: os.Getenv("FORCE_WEBP") == "true" || os.Getenv("FORCE_WEBP") == "1", Privacy: map[string]interface{}{ "set": os.Getenv("PRIVACY_NOT_COLLECTED") != "",