mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:13:35 +03:00
urlpieces: remove members that live in peers/creds
Remove members of `struct urlpieces` that now live in peers/creds. Change all remaining uses of those urlpieces. When comparing schemes, use the protocol constants. Closes #22171
This commit is contained in:
parent
cfc7922377
commit
18475e662c
11 changed files with 65 additions and 54 deletions
|
|
@ -2586,8 +2586,8 @@ static CURLcode myssh_connect(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
rc = ssh_options_set(sshc->ssh_session, SSH_OPTIONS_HOST,
|
||||
(data->state.up.hostname[0] == '[') ?
|
||||
data->state.up.hostname : conn->origin->hostname);
|
||||
conn->origin->ipv6 ?
|
||||
conn->origin->user_hostname : conn->origin->hostname);
|
||||
|
||||
if(rc != SSH_OK) {
|
||||
failf(data, "Could not set remote host");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue