mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-03 04:11:51 +08:00
fix(traffic): 升级 go-mitmproxy 修复 socks5 上游握手失败时的 nil panic
全局出口代理配置为 socks5:// 时,SOCKS5 握手失败会刷出 "http: panic serving ...: nil pointer dereference"。 根因在依赖库 go-mitmproxy v1.9.2 的 internal/helper/proxy.go:40: x/net 的 SOCKS5 DialContext 失败时返回 (nil, err),库仍调用 conn.Close(),必然空指针。net/http 每连接 recover,进程不退出, 但每条 CONNECT 被直接掐断(客户端见到 EOF),且 panic 发生在 HTTPConnectError 回调之前,导致 reportUpstreamFailure 不触发, 代理池自愈与任务重连完全收不到失败信号。 上游已在 v1.9.4 修复(issue #110,commit 388f47a),本次升级 v1.9.2 -> v1.9.5。实测同一份 traffic 包:v1.9.2 下 CONNECT 返回 unexpected EOF 且回调不触发;v1.9.5 下返回 502 并正常触发失败回调。 连带升级 go-mitmproxy 要求的最低版本:x/net 0.61.0、x/crypto 0.58.0、x/text 0.43.0、x/sys 0.49.0、x/mod 0.41.0、x/sync 0.24.0、 x/tools 0.51.0。 验证:go build ./... 与 go vet ./... 在 -mod=readonly 下通过; 按包隔离数据库逐包对比升级前后,失败集合完全一致(db、llmrec 为本次改动前既有失败),traffic/evidence/intercept/sidequestion/ guard/notify/server 全绿。
This commit is contained in:
1 parent
73d5437c5a
commit
0fed4ba3a3
3 files changed
+26
-11
No files matched your search
@@ -3,19 +3,19 @@ module github.com/Autumn-27/artex
|
||||
go 1.26.10
|
||||
|
||||
require (
|
||||
mvdan.cc/sh/v3 v3.10.0
|
||||
github.com/Autumn-27/norma v0.4.3
|
||||
github.com/golang-jwt/jwt/v5 v5.3.1
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/jackc/pgx/v5 v5.10.0
|
||||
github.com/klauspost/compress v1.18.6
|
||||
github.com/lqqyt2423/go-mitmproxy v1.9.2
|
||||
github.com/lqqyt2423/go-mitmproxy v1.9.5
|
||||
github.com/miekg/dns v1.1.72
|
||||
github.com/projectdiscovery/dnsx v1.2.3
|
||||
golang.org/x/crypto v0.55.0
|
||||
golang.org/x/net v0.58.0
|
||||
golang.org/x/text v0.41.0
|
||||
golang.org/x/crypto v0.58.0
|
||||
golang.org/x/net v0.61.0
|
||||
golang.org/x/text v0.43.0
|
||||
modernc.org/sqlite v1.52.0
|
||||
mvdan.cc/sh/v3 v3.10.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -52,10 +52,10 @@ require (
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect
|
||||
golang.org/x/mod v0.40.0 // indirect
|
||||
golang.org/x/sync v0.22.0 // indirect
|
||||
golang.org/x/sys v0.47.0 // indirect
|
||||
golang.org/x/tools v0.49.0 // indirect
|
||||
golang.org/x/mod v0.41.0 // indirect
|
||||
golang.org/x/sync v0.24.0 // indirect
|
||||
golang.org/x/sys v0.49.0 // indirect
|
||||
golang.org/x/tools v0.51.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
modernc.org/libc v1.72.3 // indirect
|
||||
modernc.org/mathutil v1.7.1 // indirect
|
||||
|
||||
Reference in new issue
Block a user