diff --git a/README.md b/README.md index 6570d5b..8628f23 100644 --- a/README.md +++ b/README.md @@ -92,11 +92,9 @@ var leSni = require('le-sni-auto').create({ -// some default certificates that work with localhost -// (because default certificates are required as a fallback) -var tlsOptions = require('localhost.daplie.me-certificates').merge({ +var tlsOptions = { SNICallback: leSni.sniCallback -}); +}; https.createServer(tlsOptions, app); ``` @@ -148,9 +146,9 @@ var leSni = require('le-sni-auto').create({ renewWithin: 14 * 24 * 60 * 60 1000 }); -var tlsOptions = require('localhost.daplie.com-certificates').merge({ +var tlsOptions = { SNICallback: leSni.sniCallback -}); +}; function app(req, res) { res.end("Hello, World!");