Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/_tls_wrap.js
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
masx200 and jasnell authored Jul 20, 2020
commit 5549fd26ef7de87d29581a93861b07de2f89f50c
3 changes: 1 addition & 2 deletions lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,8 +1412,7 @@ Server.prototype.addContext = function(servername, context) {
if (!servername) {
throw new ERR_TLS_REQUIRED_SERVER_NAME();
}
//https://github.com/nodejs/node/issues/34110
servername=servername.toLowerCase()
servername = servername.toLowerCase()

const re = new RegExp('^' +
servername.replace(/([.^$+?\-\\[\]{}])/g, '\\$1')
Expand Down