diff --git a/src/utils/Fetcher.test.ts b/src/utils/Fetcher.test.ts index 15d401c..cd64853 100644 --- a/src/utils/Fetcher.test.ts +++ b/src/utils/Fetcher.test.ts @@ -30,7 +30,7 @@ describe('fetch', () => { 'Forwarded': 'for=127.0.0.1', 'Priority': 'u=0', 'Referer': 'https://some-url.test', - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.3', + 'User-Agent': 'node', 'X-Forwarded-For': '127.0.0.1', 'X-Forwarded-Proto': 'https', 'X-Real-IP': '127.0.0.1', diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 2fca445..78c961c 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -36,7 +36,7 @@ export class Fetcher { 'Forwarded': `for=${ctx.ip}`, 'Priority': 'u=0', 'Referer': `${ctx.referer?.href ?? url.origin}`, - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.3', + 'User-Agent': 'node', 'X-Forwarded-For': ctx.ip, 'X-Forwarded-Proto': url.protocol.slice(0, -1), 'X-Real-IP': ctx.ip,