Browse Source

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

pull/67/head
xiaojunnuo 4 years ago
parent
commit
31d64d802c
  1. 2
      packages/core/src/config/index.js
  2. 2
      packages/mitmproxy/src/lib/proxy/middleware/overwall.js

2
packages/core/src/config/index.js

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

2
packages/mitmproxy/src/lib/proxy/middleware/overwall.js

@ -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]

Loading…
Cancel
Save