summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-28 16:42:40 +0200
committerGravatar Nikias Bassen2012-07-28 16:42:40 +0200
commite2da5f0e79c9a63e12ef37d2fd087bcbff4c967d (patch)
tree9aab033537a0ac4809949ae4aa0553ae66f039a5 /src/tss.c
parenteaec785bac589c4d4a77cf72f72114688c2c1836 (diff)
downloadidevicerestore-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tss.c b/src/tss.c
index f1b65a4..2928a2e 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -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]);