Merge pull request #8614 from dgquintas/grpclb_shame_cube_af_inet6

Use the right address family
reviewable/pr7771/r3
David G. Quintas 8 years ago committed by GitHub
commit 02f40dfa17
  1. 2
      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;
}

Loading…
Cancel
Save