Skip to content

Commit f33220d

Browse files
committed
Allow rediss:// style urls for TLS support
1 parent aba1873 commit f33220d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = {
7171
if (!this.pluginConfig.url) {
7272
['host', 'port'].forEach(this.applyDefaultConfigProperty.bind(this));
7373
} else {
74-
var redisUrlRegexp = new RegExp('^redis://');
74+
var redisUrlRegexp = new RegExp('^rediss?://');
7575

7676
if (!this.pluginConfig.url.match(redisUrlRegexp)) {
7777
throw new Error(`Your Redis URL appears to be missing the "redis://" protocol. Update your URL to: redis://${this.pluginConfig.url}`);

0 commit comments

Comments
 (0)