Skip to content

Commit e8f55a1

Browse files
committed
add redis password check
1 parent 6ee1a59 commit e8f55a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/redis/redis.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ public class Redis
3939
conns[addr] = conn;
4040
writeln(password);
4141
writeln("AUTH "~password);
42-
if(password.length > 0)
42+
if(password.length > 0){
4343
conn.send(toMultiBulk("AUTH", password));
44+
Response[] r = receiveResponses(conn, 1);
45+
}
4446
}
4547

4648
override string toString()

0 commit comments

Comments
 (0)