mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'maint'
* maint: connect: correctly number ipv6 network adapter
This commit is contained in:
commit
259bcfb6b9
|
@ -217,7 +217,7 @@ static int git_tcp_connect_sock(char *host, int flags)
|
|||
if (flags & CONNECT_VERBOSE)
|
||||
fprintf(stderr, "done.\nConnecting to %s (port %s) ... ", host, port);
|
||||
|
||||
for (ai0 = ai; ai; ai = ai->ai_next) {
|
||||
for (ai0 = ai; ai; ai = ai->ai_next, cnt++) {
|
||||
sockfd = socket(ai->ai_family,
|
||||
ai->ai_socktype, ai->ai_protocol);
|
||||
if ((sockfd < 0) ||
|
||||
|
|
Loading…
Reference in a new issue