summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tss.c b/src/tss.c
index 98b651c..e505e6e 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -323,6 +323,12 @@ plist_t tss_send_request(plist_t tss_request) {
unsigned int size = 0;
char curl_error_message[CURL_ERROR_SIZE];
+ const char* urls[3] = {
+ "http://gs.apple.com/TSS/controller?action=2",
+ "http://17.171.36.30/TSS/controller?action=2",
+ "http://17.151.36.30/TSS/controller?action=2"
+ };
+
plist_to_xml(tss_request, &request, &size);
tss_response* response = NULL;
@@ -359,7 +365,9 @@ plist_t tss_send_request(plist_t tss_request) {
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");
+ int url_index = (retry - 1) % 3;
+ curl_easy_setopt(handle, CURLOPT_URL, urls[url_index]);
+ info("Request URL set to %s\n", urls[url_index]);
}
info("Sending TSS request attempt %d... ", retry);