aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2016-11-03 02:37:35 +0100
committerGravatar GitHub <noreply@github.com>2016-11-03 02:37:35 +0100
commit02f40dfa174a7a80481ba5e1af3eb1871278beca (patch)
tree042c1c4d37e340c1e7d60d4dccf2f1e8b2557848
parentea14e0e2a0ad698855d052e2fe8ba0b7e8114c57 (diff)
parent107ca164b061ce01163bbfa8c7433fba52f38526 (diff)
Merge pull request #8614 from dgquintas/grpclb_shame_cube_af_inet6
Use the right address family
-rw-r--r--src/core/ext/lb_policy/grpclb/grpclb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/lb_policy/grpclb/grpclb.c b/src/core/ext/lb_policy/grpclb/grpclb.c
index 734108a9db..30e412e358 100644
--- a/src/core/ext/lb_policy/grpclb/grpclb.c
+++ b/src/core/ext/lb_policy/grpclb/grpclb.c
@@ -402,7 +402,7 @@ static void parse_server(const grpc_grpclb_server *server,
} else if (ip->size == 16) {
addr->len = sizeof(struct sockaddr_in6);
struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr->addr;
- addr6->sin6_family = AF_INET;
+ addr6->sin6_family = AF_INET6;
memcpy(&addr6->sin6_addr, ip->bytes, ip->size);
addr6->sin6_port = netorder_port;
}