You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(parsed.hostname||parsed.slashes){// The host might be an empty string
29
+
if(parsed.slashes){// We require slashes
27
30
if(parsed.auth){
28
31
options.password=parsed.auth.split(':')[1];
29
32
}
30
-
if(!/^([a-z]+:)?\/\//i.test(parsed.href)){
31
-
thrownewError('Connection string must use the "redis:" protocol or begin with slashes //');
33
+
if(parsed.protocol&&parsed.protocol!=='redis:'){
34
+
console.warn('node_redis: WARNING: You passed "'+parsed.protocol.substring(0,parsed.protocol.length-1)+'" as protocol instead of the "redis" protocol!');
0 commit comments