From da89714865491689fff96d505f204874fe7bd40e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 5 Nov 2018 06:58:50 +0000 Subject: [PATCH] add some comments --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index fc5b249..d65869c 100644 --- a/index.js +++ b/index.js @@ -114,6 +114,8 @@ module.exports.create = function (opts) { var server; var plainServer; + // If there is only one handler for the `listening` (i.e. TCP bound) event + // then we want to use it as HTTPS (backwards compat) if (!fn) { fn = fnPlain; fnPlain = null;