summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2012-10-25 08:09:24 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2012-10-25 08:09:24 -0700
commit3c46b13a62164d9f3f99289476f84db7918aafc2 (patch)
tree24dc6aa1094306b70356bd63b5b25dfeec831d3a
parent0fff0f182b96b4ffeee8379f29ed5129c3f72cf7 (diff)
parent8cbedceca7c803825c3380b406589706f0a63e5c (diff)
Merge pull request #128 from clongeau/master
make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2
-rw-r--r--example.c2
1 files changed, 1 insertions, 1 deletions
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);