Skip to content

Commit

Permalink
更改ip测试方式
Browse files Browse the repository at this point in the history
  • Loading branch information
lzghzr committed Jan 29, 2018
1 parent 0619e82 commit 3f8b9a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bilive/lib/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ async function testIP(apiIPs: string[]): Promise<number> {
const test: Promise<undefined>[] = []
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
Expand Down

0 comments on commit 3f8b9a3

Please sign in to comment.