Skip to content

Commit

Permalink
#61 - Prevent starting http server when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
markwylde committed Oct 1, 2021
1 parent b3fae20 commit c6476d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/modules/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ async function handleGetCollection (context, request, response, { collectionId }
}

function httpModule (context) {
if (!context.options.httpPort || !context.options.httpHost) {
return;
}

const server = http2.createSecureServer({
...context.options.tls,
allowHTTP1: true
Expand Down

0 comments on commit c6476d7

Please sign in to comment.