diff --git a/bilive/lib/tools.ts b/bilive/lib/tools.ts index 7284df0..de9fa10 100644 --- a/bilive/lib/tools.ts +++ b/bilive/lib/tools.ts @@ -70,9 +70,10 @@ async function testIP(apiIPs: string[]): Promise { const test: Promise[] = [] apiIPs.forEach(ip => { const headers = getHeaders('PC') - headers['host'] = 'api.live.bilibili.com' const options = { - uri: `http://${ip}/`, + uri: 'http://api.live.bilibili.com', + proxy: `http://${ip}/`, + tunnel: false, method: 'HEAD', timeout: 1000, headers