提交 801fc5a7 编写于 作者: B binaryify

fixed realIP error

上级 e602cdd5
...@@ -50,7 +50,7 @@ const createRequest = (method, url, data, options) => { ...@@ -50,7 +50,7 @@ const createRequest = (method, url, data, options) => {
if (url.includes('music.163.com')) if (url.includes('music.163.com'))
headers['Referer'] = 'https://music.163.com' headers['Referer'] = 'https://music.163.com'
if (options.realIP) headers['X-Real-IP'] = options.realIP if (options.realIP) headers['X-Real-IP'] = options.realIP
headers['X-Real-IP'] = '118.88.88.88' // headers['X-Real-IP'] = '118.88.88.88'
if (typeof options.cookie === 'object') if (typeof options.cookie === 'object')
headers['Cookie'] = Object.keys(options.cookie) headers['Cookie'] = Object.keys(options.cookie)
.map( .map(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册