fix: 修复增强功能中自定义域名无效的bug
parent
6fe4684665
commit
31d64d802c
|
@ -161,6 +161,8 @@ module.exports = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mapping: {
|
mapping: {
|
||||||
|
'*yarnpkg.com': 'usa',
|
||||||
|
'*cloudfront.net': 'usa',
|
||||||
'*github.io': 'usa',
|
'*github.io': 'usa',
|
||||||
'img.shields.io': 'usa',
|
'img.shields.io': 'usa',
|
||||||
'*.github.com': 'usa',
|
'*.github.com': 'usa',
|
||||||
|
|
|
@ -27,7 +27,7 @@ module.exports = function createOverWallIntercept (overWallConfig) {
|
||||||
if (keys.length === 0) {
|
if (keys.length === 0) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const regexpMap = matchUtil.domainMapRegexply(overWallConfig.intercepts)
|
const regexpMap = matchUtil.domainMapRegexply(overWallConfig.targets)
|
||||||
return {
|
return {
|
||||||
sslConnectInterceptor: (req, cltSocket, head) => {
|
sslConnectInterceptor: (req, cltSocket, head) => {
|
||||||
const hostname = req.url.split(':')[0]
|
const hostname = req.url.split(':')[0]
|
||||||
|
|
Loading…
Reference in New Issue