取消了后台的music-dl.sayqz代理
This commit is contained in:
@@ -34,13 +34,13 @@ const server = http.createServer((req, res) => {
|
|||||||
|
|
||||||
// --- Music API Proxy ---
|
// --- Music API Proxy ---
|
||||||
// Proxy requests to music-dl.sayqz.com to avoid CORS issues
|
// Proxy requests to music-dl.sayqz.com to avoid CORS issues
|
||||||
if (pathname === '/music-api' || pathname === '/music-api/') {
|
// if (pathname === '/music-api' || pathname === '/music-api/') {
|
||||||
const queryString = parsedUrl.search || '';
|
// const queryString = parsedUrl.search || '';
|
||||||
const targetUrl = `https://music-dl.sayqz.com/api/${queryString}`;
|
// const targetUrl = `https://music-dl.sayqz.com/api/${queryString}`;
|
||||||
|
|
||||||
proxyRequest(targetUrl, req, res);
|
// proxyRequest(targetUrl, req, res);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Path format: /kv/:key?token=...
|
// Path format: /kv/:key?token=...
|
||||||
const match = pathname.match(/^\/kv\/([a-zA-Z0-9_-]+)$/);
|
const match = pathname.match(/^\/kv\/([a-zA-Z0-9_-]+)$/);
|
||||||
|
|||||||
Reference in New Issue
Block a user