forked from svrjs/svrjs
Changed secure context regex generation
This commit is contained in:
parent
355d20a2c1
commit
179ebf6a7f
1 changed files with 3 additions and 0 deletions
3
svr.js
3
svr.js
|
@ -2111,6 +2111,9 @@ if (!cluster.isPrimary) {
|
|||
cert: sniCredentialsSingle.cert,
|
||||
key: sniCredentialsSingle.key
|
||||
});
|
||||
try {
|
||||
server._contexts[server._contexts.length-1][0] = new RegExp("^" + sniCredentialsSingle.name.replace(/([.^$+?\-\\[\]{}])/g, "\\$1").replace(/\*/g, "[^.]*") + "\.?$", "i");
|
||||
} catch(ex) {}
|
||||
});
|
||||
}
|
||||
server.on("request", reqhandler);
|
||||
|
|
Reference in a new issue