Skip to content

Commit

Permalink
removed check for SSL when applying serverOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw committed Aug 27, 2020
1 parent 617674f commit 0e71966
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/hooks/http/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ module.exports = function(sails) {

// Use serverOptions if they were specified
// Manually create http server using Express app instance
if (sails.config.http.serverOptions || isUsingSSL) {
sails.hooks.http.server = createServer(serverOptions, expressApp);
}
else {
sails.hooks.http.server = createServer(expressApp);
}
sails.hooks.http.server = createServer(serverOptions, expressApp);

// Keep track of all openTcpConnections that come in,
// so we can destroy them later if we want to.
Expand Down

0 comments on commit 0e71966

Please sign in to comment.