mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
urldata: remove the duplicate 'ip_addr_str' field
... as the numerical IP address is already stored and kept in 'primary_ip'. Closes #6534
This commit is contained in:
parent
32766cb4db
commit
642d78026f
5 changed files with 4 additions and 11 deletions
|
|
@ -1176,9 +1176,9 @@ ConnectionExists(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
if(Curl_resolver_asynch()) {
|
||||
/* ip_addr_str[0] is NUL only if the resolving of the name hasn't
|
||||
/* primary_ip[0] is NUL only if the resolving of the name hasn't
|
||||
completed yet and until then we don't re-use this connection */
|
||||
if(!check->ip_addr_str[0]) {
|
||||
if(!check->primary_ip[0]) {
|
||||
infof(data,
|
||||
"Connection #%ld is still name resolving, can't reuse\n",
|
||||
check->connection_id);
|
||||
|
|
@ -1491,7 +1491,7 @@ void Curl_verboseconnect(struct Curl_easy *data,
|
|||
#endif
|
||||
conn->bits.conn_to_host ? conn->conn_to_host.dispname :
|
||||
conn->host.dispname,
|
||||
conn->ip_addr_str, conn->port, conn->connection_id);
|
||||
conn->primary_ip, conn->port, conn->connection_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue