0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[curl] interface -> inter_face

interface was already in use.
This commit is contained in:
Witold Filipczyk 2024-11-19 13:41:28 +01:00
parent cfe1ab3c7d
commit a659d7529e
2 changed files with 6 additions and 6 deletions

View File

@ -513,9 +513,9 @@ do_ftpes(struct connection *conn)
curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.ftp.curl_max_recv_speed", NULL));
curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.ftp.curl_max_send_speed", NULL));
char *interface = get_cmd_opt_str("bind-address");
if (interface && *interface) {
curl_easy_setopt(curl, CURLOPT_INTERFACE, interface);
char *inter_face = get_cmd_opt_str("bind-address");
if (inter_face && *inter_face) {
curl_easy_setopt(curl, CURLOPT_INTERFACE, inter_face);
}
//curl_easy_setopt(curl, CURLOPT_XFERINFODATA, conn);
//curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback);

View File

@ -207,9 +207,9 @@ do_http(struct connection *conn)
curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.http.curl_max_recv_speed", NULL));
curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.http.curl_max_send_speed", NULL));
char *interface = get_cmd_opt_str("bind-address");
if (interface && *interface) {
curl_easy_setopt(curl, CURLOPT_INTERFACE, interface);
char *inter_face = get_cmd_opt_str("bind-address");
if (inter_face && *inter_face) {
curl_easy_setopt(curl, CURLOPT_INTERFACE, inter_face);
}
if (conn->uri->protocol == PROTOCOL_HTTPS) {