mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
https: fix renegotation attack protection
Listen for the 'clientError' event that is emitted when a renegotation attack is detected and close the connection. Fixes test/pummel/test-https-ci-reneg-attack.js
This commit is contained in:
1 parent
7394e89ff6
commit
0ad005852c
5 files changed
+17
-4
No files matched your search
@@ -39,6 +39,10 @@ function Server(opts, requestListener) {
|
||||
if (requestListener) {
|
||||
this.addListener('request', requestListener);
|
||||
}
|
||||
|
||||
this.addListener('clientError', function(err, conn) {
|
||||
conn.destroy(err);
|
||||
});
|
||||
}
|
||||
inherits(Server, tls.Server);
|
||||
|
||||
|
||||
Reference in new issue
Block a user