optimize: sni配置为空字符串时,不使用sni。

pull/406/head
王良 2024-11-27 13:10:43 +08:00
parent 9e27eb4301
commit f71fda1a30
1 changed files with 1 additions and 1 deletions

View File

@ -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