proxy-chain
Advanced tools
Comparing version 2.0.1-beta.12 to 2.0.1-beta.13
@@ -176,2 +176,6 @@ /// <reference types="node" /> | ||
/** | ||
* Forcibly close a specific pending proxy connection. | ||
*/ | ||
closeConnection(connectionId: number): void; | ||
/** | ||
* Forcibly closes pending proxy connections. | ||
@@ -178,0 +182,0 @@ */ |
@@ -486,2 +486,13 @@ "use strict"; | ||
/** | ||
* Forcibly close a specific pending proxy connection. | ||
*/ | ||
closeConnection(connectionId) { | ||
this.log(null, 'Closing pending socket'); | ||
const socket = this.connections.get(connectionId); | ||
if (!socket) | ||
return; | ||
socket.destroy(); | ||
this.log(null, `Destroyed pending socket`); | ||
} | ||
/** | ||
* Forcibly closes pending proxy connections. | ||
@@ -488,0 +499,0 @@ */ |
{ | ||
"name": "proxy-chain", | ||
"version": "2.0.1-beta.12", | ||
"version": "2.0.1-beta.13", | ||
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160110
1639