mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-06 08:00:21 +02:00
Net: drop the unused third-party lookup host
The allowlist carried a non-Sony host for a lookup that was never built; the function was a stub that always returned -1. Removing both leaves behaviour unchanged and keeps every request on the PlayStation CDN.
This commit is contained in:
1 parent
74ec23aa7e
commit
b727fd430f
2 files changed
+1
-15
No files matched your search
@@ -67,7 +67,6 @@ static const char *ALLOWED_HOSTS[] = {
|
|||||||
"sgst.prod.dl.playstation.net",
|
"sgst.prod.dl.playstation.net",
|
||||||
"gst.prod.dl.playstation.net",
|
"gst.prod.dl.playstation.net",
|
||||||
"gs2.ww.prod.dl.playstation.net",
|
"gs2.ww.prod.dl.playstation.net",
|
||||||
"prosperopatches.com",
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-14
@@ -52,16 +52,6 @@ lookup_tsv(const char *title_id, char *url_out, size_t url_sz) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
lookup_prosperopatches(const char *title_id, char *url_out, size_t url_sz) {
|
|
||||||
/* TODO: implement live lookup once API endpoint is confirmed on-device.
|
|
||||||
prosperopatches.com serves Sony CDN index links for PS5 titles. */
|
|
||||||
(void)title_id;
|
|
||||||
(void)url_out;
|
|
||||||
(void)url_sz;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
patchdl_resolve_url(const char *title_id, char *url_out, size_t url_sz) {
|
patchdl_resolve_url(const char *title_id, char *url_out, size_t url_sz) {
|
||||||
if (!title_id) return -1;
|
if (!title_id) return -1;
|
||||||
@@ -74,8 +64,5 @@ patchdl_resolve_url(const char *title_id, char *url_out, size_t url_sz) {
|
|||||||
strncmp(title_id, "PPSC", 4))
|
strncmp(title_id, "PPSC", 4))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!lookup_tsv(title_id, url_out, url_sz))
|
return lookup_tsv(title_id, url_out, url_sz);
|
||||||
return 0;
|
|
||||||
|
|
||||||
return lookup_prosperopatches(title_id, url_out, url_sz);
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user