summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar boxingsquirrel2011-04-30 17:31:01 -0400
committerGravatar boxingsquirrel2011-04-30 17:31:01 -0400
commit1c851c273dece4d1a6efa5a6e093557bd0e862c1 (patch)
tree36462c25af32a6bf2070a6a1fe510beed0a8efd2 /src/tss.c
parentfde808212e85de310cb404ac2e577da17f8382c2 (diff)
downloadidevicerestore-1c851c273dece4d1a6efa5a6e093557bd0e862c1.tar.gz
idevicerestore-1c851c273dece4d1a6efa5a6e093557bd0e862c1.tar.bz2
Working with iOS versions up to 4.3.2; plus all currently released devices
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tss.c b/src/tss.c
index 0d4422c..eac3d32 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -171,8 +171,11 @@ 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));
- curl_easy_setopt(handle, CURLOPT_URL, "http://cydia.saurik.com/TSS/controller?action=2");
- //curl_easy_setopt(handle, CURLOPT_URL, "http://gs.apple.com/TSS/controller?action=2");
+ if (use_apple_server==0) {
+ curl_easy_setopt(handle, CURLOPT_URL, "http://cydia.saurik.com/TSS/controller?action=2");
+ } else {
+ curl_easy_setopt(handle, CURLOPT_URL, "http://gs.apple.com/TSS/controller?action=2");
+ }
curl_easy_perform(handle);
curl_slist_free_all(header);