Skip to content

Commit d9e96ba

Browse files
authored
Merge pull request #113 from wongpeiyi/master
Allow rediss:// style urls for TLS support
2 parents aba1873 + f33220d commit d9e96ba

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)