mirror of
https://github.com/avwo/whistle.git
synced 2026-10-27 21:49:10 +08:00
refactor: code
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ var sniPort;
|
||||
var SNICallback = function(serverName, cb) {
|
||||
serverName = ca.getDomain(serverName);
|
||||
var options = ca.createCertificate(serverName);
|
||||
if (!options.ctx) {
|
||||
if (!options._ctx) {
|
||||
options._ctx = ca.createSecureContext(options);
|
||||
}
|
||||
cb(null, options._ctx);
|
||||
|
||||
Reference in New Issue
Block a user