Merge remote-tracking branch 'upstream/master' into fork/2361485765/master

pull/376/head
王良 2024-10-18 09:41:43 +08:00
commit dd402cdcc0
8 changed files with 37 additions and 15 deletions

View File

@ -5,6 +5,9 @@ on:
branches: branches:
- master - master
- release - release
pull_request:
branches:
- master
jobs: jobs:
test-and-upload: test-and-upload:

View File

@ -14,5 +14,5 @@
"ignore": [] "ignore": []
} }
}, },
"version": "1.8.6" "version": "1.8.8"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@docmirror/dev-sidecar", "name": "@docmirror/dev-sidecar",
"version": "1.8.6", "version": "1.8.8",
"description": "给开发者的加速代理工具", "description": "给开发者的加速代理工具",
"main": "src/index.js", "main": "src/index.js",
"keywords": [ "keywords": [
@ -17,7 +17,7 @@
"test": "mocha" "test": "mocha"
}, },
"dependencies": { "dependencies": {
"@docmirror/mitmproxy": "^1.8.6", "@docmirror/mitmproxy": "^1.8.8",
"agentkeepalive": "^2.1.1", "agentkeepalive": "^2.1.1",
"babel-preset-es2020": "^1.0.2", "babel-preset-es2020": "^1.0.2",
"charset": "^1.0.0", "charset": "^1.0.0",

View File

@ -1,9 +1,9 @@
[AutoProxy 0.2.9] [AutoProxy 0.2.9]
! Checksum: l4wfvwqYVXzlCBYaVcmRxQ ! Checksum: j9+lCGr2eTNyrwZCFg8ZzQ
! Expires: 6h ! Expires: 6h
! Title: GFWList4LL ! Title: GFWList4LL
! GFWList with EVERYTHING included ! GFWList with EVERYTHING included
! Last Modified: Mon, 02 Sep 2024 11:03:48 -0400 ! Last Modified: Mon, 07 Oct 2024 11:39:43 -0400
! !
! HomePage: https://github.com/gfwlist/gfwlist ! HomePage: https://github.com/gfwlist/gfwlist
! License: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt ! License: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
@ -832,6 +832,7 @@ cdninstagram.com
||facebook.com ||facebook.com
!--/^https?:\/\/[^\/]+facebook\.com/ !--/^https?:\/\/[^\/]+facebook\.com/
@@||v6.facebook.com @@||v6.facebook.com
||facebook.de
||facebook.design ||facebook.design
||connect.facebook.net ||connect.facebook.net
||facebook.hu ||facebook.hu
@ -850,6 +851,7 @@ cdninstagram.com
||instagram.com ||instagram.com
||m.me ||m.me
||messenger.com ||messenger.com
||meta.com
||oculus.com ||oculus.com
||oculuscdn.com ||oculuscdn.com
||rocksdb.org ||rocksdb.org
@ -1505,6 +1507,7 @@ blogspot.com
||on2.com ||on2.com
||opensource.google ||opensource.google
||panoramio.com ||panoramio.com
||passwords.google
||picasaweb.com ||picasaweb.com
||pki.goog ||pki.goog
||plus.codes ||plus.codes
@ -7359,6 +7362,7 @@ torrentprivacy.com
|http://torrentproject.se |http://torrentproject.se
||torrenty.org ||torrenty.org
||torrentz.eu ||torrentz.eu
||tortoisesvn.net
||torvpn.com ||torvpn.com
||totalvpn.com ||totalvpn.com
.toutiaoabc.com .toutiaoabc.com

View File

@ -1,6 +1,6 @@
[SwitchyOmega Conditions] [SwitchyOmega Conditions]
; Require: SwitchyOmega >= 2.3.2 ; Require: SwitchyOmega >= 2.3.2
; Update Date: 2024/09/26 ; Update Date: 2024/10/14
; Author: Pluwen ; Author: Pluwen
; Usage: https://github.com/FelisCatus/SwitchyOmega/wiki/RuleListUsage ; Usage: https://github.com/FelisCatus/SwitchyOmega/wiki/RuleListUsage
@ -19,6 +19,7 @@
*.0daydown.com *.0daydown.com
*.0o0.ooo *.0o0.ooo
*.10010.com *.10010.com
*.10086cloud.com
*.114la.com *.114la.com
*.114yygh.com *.114yygh.com
*.115.com *.115.com
@ -54,6 +55,7 @@
*.360buyimg.com *.360buyimg.com
*.360doc.com *.360doc.com
*.360in.com *.360in.com
*.360safe.com
*.36kr.com *.36kr.com
*.39.net *.39.net
*.3dmgame.com *.3dmgame.com
@ -140,6 +142,7 @@
*.ant.design *.ant.design
*.antfin-inc.com *.antfin-inc.com
*.antfin.com *.antfin.com
*.antpcdn.com
*.anw.red *.anw.red
*.anyway.fm *.anyway.fm
*.anzhi.com *.anzhi.com
@ -203,6 +206,7 @@
*.biliapi.net *.biliapi.net
*.bilibili.com *.bilibili.com
*.bilibili.tv *.bilibili.tv
*.bilicomic.com
*.biligame.com *.biligame.com
*.biligame.net *.biligame.net
*.bilivideo.com *.bilivideo.com
@ -404,6 +408,7 @@
*.frdic.com *.frdic.com
*.freebuf.com *.freebuf.com
*.freeziti.com *.freeziti.com
*.fromgeek.com
*.futu5.com *.futu5.com
*.futunn.com *.futunn.com
*.fydeos.com *.fydeos.com
@ -551,6 +556,7 @@
*.jdkindle.com *.jdkindle.com
*.jdpay.com *.jdpay.com
*.jetbrains.com *.jetbrains.com
*.jfdaily.com
*.jfrft.com *.jfrft.com
*.jhdec.com *.jhdec.com
*.jianguoyun.com *.jianguoyun.com
@ -637,6 +643,7 @@
*.lecloud.com *.lecloud.com
*.leetcode-cn.com *.leetcode-cn.com
*.lemicp.com *.lemicp.com
*.lenovo.net
*.lenovomobile.com *.lenovomobile.com
*.letv.com *.letv.com
*.letvimg.com *.letvimg.com
@ -841,6 +848,7 @@
*.qhimg.com *.qhimg.com
*.qhmsg.com *.qhmsg.com
*.qhres.com *.qhres.com
*.qianxin.com
*.qichacha.com *.qichacha.com
*.qidian.com *.qidian.com
*.qihucdn.com *.qihucdn.com
@ -899,6 +907,7 @@
*.sc115.com *.sc115.com
*.sciencedirect.com *.sciencedirect.com
*.sciencemag.org *.sciencemag.org
*.scofd.com
*.scomper.me *.scomper.me
*.sdbeta.com *.sdbeta.com
*.sdo.com *.sdo.com
@ -958,7 +967,6 @@
*.steamcn.com *.steamcn.com
*.steamcontent.com *.steamcontent.com
*.steamdb.info *.steamdb.info
*.steamstatic.com
*.subhd.tv *.subhd.tv
*.sui.com *.sui.com
*.suning.com *.suning.com

View File

@ -1,6 +1,6 @@
{ {
"name": "@docmirror/dev-sidecar-gui", "name": "@docmirror/dev-sidecar-gui",
"version": "1.8.6", "version": "1.8.8",
"private": false, "private": false,
"license": "MPL-2.0", "license": "MPL-2.0",
"main": "index.js", "main": "index.js",
@ -21,8 +21,8 @@
"name": "Greper" "name": "Greper"
}, },
"dependencies": { "dependencies": {
"@docmirror/dev-sidecar": "^1.8.6", "@docmirror/dev-sidecar": "^1.8.8",
"@docmirror/mitmproxy": "^1.8.6", "@docmirror/mitmproxy": "^1.8.8",
"adm-zip": "^0.5.5", "adm-zip": "^0.5.5",
"ant-design-vue": "^1.6.5", "ant-design-vue": "^1.6.5",
"compressing": "^1.5.1", "compressing": "^1.5.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@docmirror/mitmproxy", "name": "@docmirror/mitmproxy",
"version": "1.8.6", "version": "1.8.8",
"description": "", "description": "",
"main": "src/index.js", "main": "src/index.js",
"keywords": [ "keywords": [

View File

@ -15,7 +15,7 @@ function matched (hostname, overWallTargetMap) {
return 'overwall config' return 'overwall config'
} }
if (pacClient == null) { if (pacClient == null) {
return false return null
} }
const ret = pacClient.FindProxyForURL('https://' + hostname, hostname) const ret = pacClient.FindProxyForURL('https://' + hostname, hostname)
if (ret && ret.indexOf('PROXY ') === 0) { if (ret && ret.indexOf('PROXY ') === 0) {
@ -23,7 +23,7 @@ function matched (hostname, overWallTargetMap) {
return 'overwall pac' return 'overwall pac'
} else { } else {
log.debug(`matchHostname: matched overwall: Not-Matched '${hostname}' -> '${ret}' in pac.txt`) log.debug(`matchHostname: matched overwall: Not-Matched '${hostname}' -> '${ret}' in pac.txt`)
return false return null
} }
} }
@ -148,7 +148,14 @@ function createOverwallMiddleware (overWallConfig) {
return { return {
sslConnectInterceptor: (req, cltSocket, head) => { sslConnectInterceptor: (req, cltSocket, head) => {
const hostname = req.url.split(':')[0] const hostname = req.url.split(':')[0]
return matched(hostname, overWallTargetMap) const ret = matched(hostname, overWallTargetMap)
if (ret == null) {
return null // 返回 null由下一个拦截器校验
}
if (ret === false) {
return false // 不拦截,预留这个判断,避免以后修改 matched 方法的代码出BUG
}
return true // 拦截
}, },
requestIntercept (context, req, res, ssl, next) { requestIntercept (context, req, res, ssl, next) {
const { rOptions, log, RequestCounter } = context const { rOptions, log, RequestCounter } = context
@ -157,7 +164,7 @@ function createOverwallMiddleware (overWallConfig) {
} }
const hostname = rOptions.hostname const hostname = rOptions.hostname
const matchedResult = matched(hostname, overWallTargetMap) const matchedResult = matched(hostname, overWallTargetMap)
if (!matchedResult) { if (matchedResult == null || matchedResult === false) {
return return
} }
const cacheKey = '__over_wall_proxy__' const cacheKey = '__over_wall_proxy__'