Skip to content

Commit

Permalink
allow video flow in secure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Mar 1, 2019
1 parent 168f43c commit 0184369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const port = config.port || 8080

global.proxy = config.proxyUrl ? parse(config.proxyUrl) : null
global.hosts = {}, hook.target.host.forEach(host => global.hosts[host] = config.forceHost)
config.strict ? server.whitelist = ['music.163.com', 'music.126.net'] : server.blanklist = []
config.strict ? server.whitelist = ['music.163.com', 'music.126.net', 'vod.126.net'] : server.blanklist = []
server.authentication = config.token || null

const dns = host => new Promise((resolve, reject) => require('dns').lookup(host, {all: true}, (error, records) => error? reject(error) : resolve(records.map(record => record.address))))
Expand Down

0 comments on commit 0184369

Please sign in to comment.