mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix(tls): use correct variable in setVerifyMode (#26255)
## Summary - Fix typo in `setVerifyMode` where `reject_unauthorized` was incorrectly reading from `request_cert_js` instead of `reject_unauthorized_js` ## Test plan - Existing TLS renegotiation tests pass - Code inspection shows the fix is correct (simple variable name typo) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -556,7 +556,7 @@ pub fn setVerifyMode(this: *This, globalObject: *jsc.JSGlobalObject, callframe:
|
||||
}
|
||||
|
||||
const request_cert = request_cert_js.toBoolean();
|
||||
const reject_unauthorized = request_cert_js.toBoolean();
|
||||
const reject_unauthorized = reject_unauthorized_js.toBoolean();
|
||||
var verify_mode: c_int = BoringSSL.SSL_VERIFY_NONE;
|
||||
if (this.isServer()) {
|
||||
if (request_cert) {
|
||||
|
||||
Reference in New Issue
Block a user