mirror of
https://github.com/GOSTSec/vanitygen
synced 2025-02-07 04:14:15 +00:00
Follow HTTP redirections on bounty servers.
This commit is contained in:
parent
dece236223
commit
53903a714c
@ -589,6 +589,7 @@ server_context_getwork(server_context_t *ctxp)
|
||||
curl_easy_setopt(creq, CURLOPT_VERBOSE, ctxp->verbose > 1) ||
|
||||
curl_easy_setopt(creq, CURLOPT_WRITEFUNCTION,
|
||||
server_body_reader) ||
|
||||
curl_easy_setopt(creq, CURLOPT_FOLLOWLOCATION, 1) ||
|
||||
curl_easy_setopt(creq, CURLOPT_WRITEDATA, reqp)) {
|
||||
fprintf(stderr, "Failed to set up libcurl\n");
|
||||
exit(1);
|
||||
@ -634,6 +635,7 @@ server_context_submit_solution(server_context_t *ctxp,
|
||||
creq = curl_easy_init();
|
||||
if (curl_easy_setopt(creq, CURLOPT_URL, urlbuf) ||
|
||||
curl_easy_setopt(creq, CURLOPT_VERBOSE, ctxp->verbose > 1) ||
|
||||
curl_easy_setopt(creq, CURLOPT_FOLLOWLOCATION, 1) ||
|
||||
curl_easy_setopt(creq, CURLOPT_POST, 1)) {
|
||||
fprintf(stderr, "Failed to set up libcurl\n");
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user