修复本机核查长路径传输并记录竞态与静态检查进度

This commit is contained in:
xuans committed 2026-10-03 19:03:46 +08:00
1 parent 75b3b719cc
commit 6b77730114
12 files changed
+426 -11

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ func Begin(ctx context.Context, conn net.Conn) (*Client, error) {
client.stop = context.AfterFunc(ctx, func() { _ = conn.Close() })
var response Response
if err := readFrame(client.reader, &response); err != nil || !validChallenge(response) ||
len(response.Methods) == 0 || len(response.Methods) > 8 || response.RecoveryPage != nil || response.Inspection != nil {
len(response.Methods) == 0 || len(response.Methods) > 8 || response.RecoveryPage != nil || response.Inspection != nil || response.InspectionPart != nil {
_ = client.Close()
return nil, ErrProtocol
}
@@ -77,7 +77,7 @@ func (c *Client) exchange(request Request, stage int) error {
_ = c.Close()
return ErrProtocol
}
if response.RecoveryAvailable || response.RecoveryPage != nil || response.Inspection != nil {
if response.RecoveryAvailable || response.RecoveryPage != nil || response.Inspection != nil || response.InspectionPart != nil {
c.stage = -1
_ = c.Close()
return ErrProtocol