Fix Telegram Backup IP fetching

This commit is contained in:
SukkaW
2026-01-29 17:25:31 +08:00
parent 911852b0c6
commit b04a9b5047
2 changed files with 3 additions and 1 deletions

View File

@@ -177,6 +177,8 @@ export async function $$fetch(url: string, init: RequestInit = defaultRequestIni
}
}
export { $$fetch as '~fetch' };
/** @deprecated -- undici.requests doesn't support gzip/br/deflate, and has difficulty w/ undidi cache */
export async function requestWithLog(url: string, opt?: Parameters<typeof undici.request>[1]) {
try {

View File

@@ -130,7 +130,7 @@ const pool = new Worktank({
const __require = module.createRequire(__filename);
const picocolors = __require('picocolors') as typeof import('picocolors');
const { fetch } = __require('./fetch-retry') as typeof import('./fetch-retry');
const { '~fetch': fetch } = __require('./fetch-retry') as typeof import('./fetch-retry');
const dns = __require('node:dns/promises') as typeof import('node:dns/promises');