Skip to content

Commit

Permalink
optimize: sni配置为空字符串时,不使用sni。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 27, 2024
1 parent 9e27eb4 commit f71fda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mitmproxy/src/lib/interceptor/impl/req/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = {
log.info('proxy choice:', JSON.stringify(context.requestCount))
}

if (interceptOpt.sni != null) {
if (interceptOpt.sni) {
let unVerifySsl = rOptions.agent.options.rejectUnauthorized === false

rOptions.servername = interceptOpt.sni
Expand Down

0 comments on commit f71fda1

Please sign in to comment.