-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for SOCKS5 proxy #1063
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1063 +/- ##
==========================================
- Coverage 82.63% 82.52% -0.11%
==========================================
Files 53 53
Lines 7660 7670 +10
Branches 1208 1207 -1
==========================================
Hits 6330 6330
- Misses 1216 1227 +11
+ Partials 114 113 -1 |
@@ -215,8 +215,8 @@ sentry__curl_send_task(void *_envelope, void *_state) | |||
curl_easy_setopt(curl, CURLOPT_HEADERDATA, (void *)&info); | |||
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback); | |||
|
|||
if (state->http_proxy) { | |||
curl_easy_setopt(curl, CURLOPT_PROXY, state->http_proxy); | |||
if (state->proxy) { // TODO do we need to process the proxy here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curl supports socks-proxies since https://curl.se/ch/7.21.7.html ; our minimum required version is currently 7.10.7 -> This might need to be updated to ensure socks-proxies work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be aware that we have a runtime and a compile-time check for libcurl
.
|
Fixes #1030
Todo
-> test by providing socks5 url & seeing where it breaks (and for which transports it works/doesn't)
-> document if transport doesn't support it (e.g. winhttp)