mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
anetPeerToString() automatically populates ip/port with something that may be provided to the user as output in case of errors.
This commit is contained in:
@ -1087,11 +1087,7 @@ sds getClientInfoString(redisClient *client) {
|
||||
time_t now = time(NULL);
|
||||
int emask;
|
||||
|
||||
if (anetPeerToString(client->fd,ip,&port) == -1) {
|
||||
ip[0] = '?';
|
||||
ip[1] = '\0';
|
||||
port = 0;
|
||||
}
|
||||
anetPeerToString(client->fd,ip,&port);
|
||||
p = flags;
|
||||
if (client->flags & REDIS_SLAVE) {
|
||||
if (client->flags & REDIS_MONITOR)
|
||||
|
Reference in New Issue
Block a user