You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "proxy-chain",
3
-
"version": "2.5.6",
3
+
"version": "2.5.7",
4
4
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.",
thrownewError(`Invalid "proxyUrl" provided: URL must have one of the following protocols: "http", ${SOCKS_PROTOCOLS.map((p)=>`"${p.replace(':','')}"`).join(', ')} (was "${parsedProxyUrl}")`);
44
44
}
45
45
@@ -50,8 +50,8 @@ export const anonymizeProxy = (
50
50
51
51
letserver: Server&{port: number};
52
52
53
-
conststartServer=()=>{
54
-
returnPromise.resolve().then(()=>{
53
+
conststartServer=async()=>{
54
+
returnPromise.resolve().then(async()=>{
55
55
server=newServer({
56
56
// verbose: true,
57
57
port,
@@ -83,7 +83,7 @@ export const anonymizeProxy = (
83
83
* and its result if `false`. Otherwise the result is `true`.
84
84
* @param closeConnections If true, pending proxy connections are forcibly closed.
0 commit comments