diff options
author | Charles Longeau <github@chl.be> | 2012-10-25 12:40:15 +0300 |
---|---|---|
committer | Charles Longeau <github@chl.be> | 2012-10-25 12:40:15 +0300 |
commit | 8cbedceca7c803825c3380b406589706f0a63e5c (patch) | |
tree | 24dc6aa1094306b70356bd63b5b25dfeec831d3a | |
parent | 0fff0f182b96b4ffeee8379f29ed5129c3f72cf7 (diff) | |
download | hiredict-8cbedceca7c803825c3380b406589706f0a63e5c.tar.xz |
make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2
-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); |