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.
This commit is contained in:
Stefan Eissing 2025-07-18 13:18:44 +02:00
parent 6845533e24
commit db49514c45
No known key found for this signature in database
12 changed files with 134 additions and 100 deletions

View file

@ -1601,14 +1601,10 @@ static void cf_socket_active(struct Curl_cfilter *cf, struct Curl_easy *data)
cf->conn->sock[cf->sockindex] = ctx->sock;
set_local_ip(cf, data);
if(cf->sockindex == FIRSTSOCKET) {
cf->conn->primary = ctx->ip;
#ifdef USE_IPV6
cf->conn->bits.ipv6 = (ctx->addr.family == AF_INET6);
#endif
}
else {
cf->conn->secondary = ctx->ip;
}
ctx->active = TRUE;
}