From f33220df965826cc7db44912ae03d61328bbde35 Mon Sep 17 00:00:00 2001 From: Wong Pei Yi Date: Mon, 10 May 2021 04:20:05 +0800 Subject: [PATCH] Allow rediss:// style urls for TLS support --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5226de2..dd22c0c 100644 --- a/index.js +++ b/index.js @@ -71,7 +71,7 @@ module.exports = { if (!this.pluginConfig.url) { ['host', 'port'].forEach(this.applyDefaultConfigProperty.bind(this)); } else { - var redisUrlRegexp = new RegExp('^redis://'); + var redisUrlRegexp = new RegExp('^rediss?://'); if (!this.pluginConfig.url.match(redisUrlRegexp)) { throw new Error(`Your Redis URL appears to be missing the "redis://" protocol. Update your URL to: redis://${this.pluginConfig.url}`);