diff options
author | michael-grunder <michael.grunder@gmail.com> | 2016-02-13 05:10:50 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2016-02-13 05:10:50 +0300 |
commit | 3012052849192593baff623a0265c4da860e15a7 (patch) | |
tree | 6e32ac79bdd6e4a6c936ef28db8dbd1e04e0adca /redis_array_impl.c | |
parent | 8c47186fe5ba83dbb866ca45f913211a3d3adc0d (diff) |
More IPv6 additions
* Modified RedisArray to support IPv6
* Updated general test suite to take an override host
* Updated make-cluster.sh to take an override host
Diffstat (limited to 'redis_array_impl.c')
-rw-r--r-- | redis_array_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_array_impl.c b/redis_array_impl.c index c90227a3..b6fd5f1b 100644 --- a/redis_array_impl.c +++ b/redis_array_impl.c @@ -57,7 +57,7 @@ ra_load_hosts(RedisArray *ra, HashTable *hosts, long retry_interval, zend_bool b host_len = Z_STRLEN_PP(zpData); port = 6379; - if((p = strchr(host, ':'))) { /* found port */ + if((p = strrchr(host, ':'))) { /* found port */ host_len = p - host; port = (short)atoi(p+1); } else if(strchr(host,'/') != NULL) { /* unix socket */ |