@cocreate/server
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,8 @@ | ||
## [1.1.1](https://github.com/CoCreate-app/CoCreate-server/compare/v1.1.0...v1.1.1) (2024-01-08) | ||
### Bug Fixes | ||
* return if ssl false ([500e7c7](https://github.com/CoCreate-app/CoCreate-server/commit/500e7c7898f3a3a5ecc676ca68cd105cc1f29a6f)) | ||
# [1.1.0](https://github.com/CoCreate-app/CoCreate-server/compare/v1.0.2...v1.1.0) (2024-01-08) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/server", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "An intergration with Server and CoCreateJS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -28,7 +28,6 @@ const Http = require('http'); | ||
console.log('sni') | ||
await server.acme.checkCertificate(domain); | ||
const sslContext = tls.createSecureContext(loadCertificates(domain)); | ||
cb(null, sslContext); | ||
if (await server.acme.checkCertificate(domain)) { | ||
const sslContext = tls.createSecureContext(loadCertificates(domain)); | ||
cb(null, sslContext); | ||
} else return | ||
} catch (error) { | ||
@@ -35,0 +34,0 @@ console.error("Error in SNI callback for domain:", domain, error); |
71330
95