Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982bd13 commit c28ad7bCopy full SHA for c28ad7b
1 file changed
library.c
@@ -2340,7 +2340,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock)
2340
#ifdef HAVE_IPV6
2341
/* If we've got IPv6 and find a colon in our address, convert to proper
2342
* IPv6 [host]:port format */
2343
- if (strchr(address, ':') != NULL) {
+ if (strchr(address, ':') != NULL && strchr(address, '[') == NULL) {
2344
fmtstr = "%s://[%s]:%d";
2345
}
2346
#endif
0 commit comments