Fix sniffer errors override each others

This commit is contained in:
dyhkwong 2025-04-21 14:41:10 +08:00 committed by GitHub
parent 6a051054db
commit 362627d61e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,7 @@ func PeekStream(ctx context.Context, metadata *adapter.InboundContext, conn net.
}
sniffError = E.Errors(sniffError, err)
}
if !errors.Is(err, ErrNeedMoreData) {
if !errors.Is(sniffError, ErrNeedMoreData) {
break
}
}