same family as the specified outbound interface. If
impossible, fail at name resolution instead of bind().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1364133 13f79535-47bb-0310-9956-
ffa450edef68
}
/* This too */
- if ((rv = apr_sockaddr_info_get(&destsa, connecthost, APR_UNSPEC, connectport, 0, cntxt))
+ if ((rv = apr_sockaddr_info_get(&destsa, connecthost,
+ myhost ? mysa->family : APR_UNSPEC,
+ connectport, 0, cntxt))
!= APR_SUCCESS) {
char buf[120];
apr_snprintf(buf, sizeof(buf),