mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
URL: on connection re-use, still pick the new remote port
... as when a proxy connection is being re-used, it can still get a different remote port. Fixes #1887 Reported-by: Oli Kingshott
This commit is contained in:
parent
7e4634cfe8
commit
22708eae40
@ -6337,6 +6337,7 @@ static void reuse_conn(struct connectdata *old_conn,
|
||||
conn->conn_to_host = old_conn->conn_to_host;
|
||||
conn->bits.conn_to_port = old_conn->bits.conn_to_port;
|
||||
conn->conn_to_port = old_conn->conn_to_port;
|
||||
conn->remote_port = old_conn->remote_port;
|
||||
|
||||
/* persist connection info in session handle */
|
||||
Curl_persistconninfo(conn);
|
||||
|
Loading…
Reference in New Issue
Block a user