From 8cbedceca7c803825c3380b406589706f0a63e5c Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Thu, 25 Oct 2012 12:40:15 +0300 Subject: make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2 --- example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.c b/example.c index 90ff9ed..378ef71 100644 --- a/example.c +++ b/example.c @@ -10,7 +10,7 @@ int main(void) { redisReply *reply; struct timeval timeout = { 1, 500000 }; // 1.5 seconds - c = redisConnectWithTimeout((char*)"127.0.0.2", 6379, timeout); + c = redisConnectWithTimeout((char*)"127.0.0.1", 6379, timeout); if (c->err) { printf("Connection error: %s\n", c->errstr); exit(1); -- cgit v1.2.3