mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-23 16:11:24 +08:00
feat: 当ENABLE_RANDOM_CN_IP为true时,除非请求参数randomCNIP显式为false,默认开启randomCNIP
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ const createOption = (query, crypto = '') => {
|
||||
ua: query.ua || '',
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
randomCNIP: query.randomCNIP || false,
|
||||
randomCNIP: query.randomCNIP !== undefined ? (query.randomCNIP === true || query.randomCNIP === 'true') : (process.env.ENABLE_RANDOM_CN_IP === 'true'),
|
||||
e_r: query.e_r || undefined,
|
||||
domain: query.domain || '',
|
||||
checkToken: query.checkToken || false,
|
||||
|
||||
Reference in New Issue
Block a user