diff options
author | Nikias Bassen | 2012-07-28 16:42:40 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-28 16:42:40 +0200 |
commit | e2da5f0e79c9a63e12ef37d2fd087bcbff4c967d (patch) | |
tree | 9aab033537a0ac4809949ae4aa0553ae66f039a5 /src/tss.c | |
parent | eaec785bac589c4d4a77cf72f72114688c2c1836 (diff) | |
download | idevicerestore-e2da5f0e79c9a63e12ef37d2fd087bcbff4c967d.tar.gz idevicerestore-e2da5f0e79c9a63e12ef37d2fd087bcbff4c967d.tar.bz2 |
tss: remove global use_apple_server symbol and use parameter instead
Diffstat (limited to 'src/tss.c')
-rw-r--r-- | src/tss.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -313,7 +313,7 @@ size_t tss_write_callback(char* data, size_t size, size_t nmemb, tss_response* r return total; } -plist_t tss_send_request(plist_t tss_request) { +plist_t tss_send_request(plist_t tss_request, const char* server_url_string) { curl_global_init(CURL_GLOBAL_ALL); char* request = NULL; @@ -366,8 +366,8 @@ plist_t tss_send_request(plist_t tss_request) { curl_easy_setopt(handle, CURLOPT_POSTFIELDS, request); curl_easy_setopt(handle, CURLOPT_USERAGENT, "InetURL/1.0"); curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, strlen(request)); - if (use_apple_server==0) { - curl_easy_setopt(handle, CURLOPT_URL, "http://cydia.saurik.com/TSS/controller?action=2"); + if (server_url_string) { + curl_easy_setopt(handle, CURLOPT_URL, server_url_string); } else { int url_index = (retry - 1) % 6; curl_easy_setopt(handle, CURLOPT_URL, urls[url_index]); |