mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
connectdata: remove primary+secondary ip_quadruple
Since the content varies during connection setup and while doing it (eyeballing), remove these strcut from `connectdata` and replace use with querying the connection filters. Those keep that information already. Change the info logging of established connections to also give the local address and port. Closes #17960
This commit is contained in:
parent
450c00f983
commit
83da4d9d3b
13 changed files with 152 additions and 125 deletions
|
|
@ -1600,15 +1600,10 @@ static void cf_socket_active(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
/* use this socket from now on */
|
||||
cf->conn->sock[cf->sockindex] = ctx->sock;
|
||||
set_local_ip(cf, data);
|
||||
if(cf->sockindex == FIRSTSOCKET) {
|
||||
cf->conn->primary = ctx->ip;
|
||||
#ifdef USE_IPV6
|
||||
#ifdef USE_IPV6
|
||||
if(cf->sockindex == FIRSTSOCKET)
|
||||
cf->conn->bits.ipv6 = (ctx->addr.family == AF_INET6);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
cf->conn->secondary = ctx->ip;
|
||||
}
|
||||
#endif
|
||||
ctx->active = TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue