diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2012-10-25 08:09:24 -0700 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2012-10-25 08:09:24 -0700 |
commit | 3c46b13a62164d9f3f99289476f84db7918aafc2 (patch) | |
tree | 24dc6aa1094306b70356bd63b5b25dfeec831d3a /example.c | |
parent | 0fff0f182b96b4ffeee8379f29ed5129c3f72cf7 (diff) | |
parent | 8cbedceca7c803825c3380b406589706f0a63e5c (diff) |
Merge pull request #128 from clongeau/master
make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |