lib: --disable-bindlocal builds curl without local binding support

This commit is contained in:
Daniel Stenberg 2023-08-17 14:36:30 +02:00
parent 97a79c79a7
commit e67718eef7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 39 additions and 0 deletions

View file

@ -1590,8 +1590,10 @@ static struct connectdata *allocate_conn(struct Curl_easy *data)
if(!conn->localdev)
goto error;
}
#ifndef CURL_DISABLE_BINDLOCAL
conn->localportrange = data->set.localportrange;
conn->localport = data->set.localport;
#endif
/* the close socket stuff needs to be copied to the connection struct as
it may live on without (this specific) Curl_easy */