fix: 修复增强功能中自定义域名无效的bug

pull/67/head
xiaojunnuo 2020-12-08 23:33:05 +08:00
parent 6fe4684665
commit 31d64d802c
2 changed files with 3 additions and 1 deletions

View File

@ -161,6 +161,8 @@ module.exports = {
}
},
mapping: {
'*yarnpkg.com': 'usa',
'*cloudfront.net': 'usa',
'*github.io': 'usa',
'img.shields.io': 'usa',
'*.github.com': 'usa',

View File

@ -27,7 +27,7 @@ module.exports = function createOverWallIntercept (overWallConfig) {
if (keys.length === 0) {
return null
}
const regexpMap = matchUtil.domainMapRegexply(overWallConfig.intercepts)
const regexpMap = matchUtil.domainMapRegexply(overWallConfig.targets)
return {
sslConnectInterceptor: (req, cltSocket, head) => {
const hostname = req.url.split(':')[0]