Skip to content

Commit

Permalink
Bypass any existing proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
treideme committed Mar 7, 2024
1 parent afce4ef commit 73010ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bottlenose_camera_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,8 @@ bool CameraDriver::ftp_upload(const std::string &ftp_url, const std::string &fil
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, fsize);
curl_easy_setopt(curl, CURLOPT_READFUNCTION, curlReadCallback);
// Disable the use of a proxy. Important for ensuring the connection is direct to the IP.
curl_easy_setopt(curl, CURLOPT_PROXY, "");
curl_easy_setopt(curl, CURLOPT_FTPPORT, "-"); // Use "-" to enable active mode, PASV not supported by camera

// Perform the upload
Expand Down

0 comments on commit 73010ee

Please sign in to comment.