proxy-chain
Advanced tools
Comparing version 2.0.1-beta.13 to 2.0.1-beta.14
/// <reference types="node" /> | ||
import dns from 'dns'; | ||
import { URL } from 'url'; | ||
@@ -9,2 +10,3 @@ import { EventEmitter } from 'events'; | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
} | ||
@@ -23,2 +25,3 @@ interface ChainOpts { | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
} | ||
@@ -25,0 +28,0 @@ /** |
@@ -38,2 +38,3 @@ "use strict"; | ||
localAddress: handlerOpts.localAddress, | ||
lookup: handlerOpts.dnsLookup, | ||
}; | ||
@@ -40,0 +41,0 @@ if (proxy.username || proxy.password) { |
/// <reference types="node" /> | ||
import dns from 'dns'; | ||
import { Buffer } from 'buffer'; | ||
@@ -7,2 +8,3 @@ import { EventEmitter } from 'events'; | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
} | ||
@@ -9,0 +11,0 @@ interface DirectOpts { |
@@ -28,2 +28,3 @@ "use strict"; | ||
localAddress: handlerOpts.localAddress, | ||
lookup: handlerOpts.dnsLookup, | ||
}; | ||
@@ -30,0 +31,0 @@ if (options.host[0] === '[') { |
/// <reference types="node" /> | ||
import dns from 'dns'; | ||
import http from 'http'; | ||
@@ -7,2 +8,3 @@ import { URL } from 'url'; | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
} | ||
@@ -9,0 +11,0 @@ /** |
@@ -38,2 +38,3 @@ "use strict"; | ||
localAddress: handlerOpts.localAddress, | ||
lookup: handlerOpts.dnsLookup, | ||
}; | ||
@@ -40,0 +41,0 @@ // In case of proxy the path needs to be an absolute URL |
/// <reference types="node" /> | ||
import dns from 'dns'; | ||
import http from 'http'; | ||
@@ -25,2 +26,3 @@ import { URL } from 'url'; | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
}; | ||
@@ -42,2 +44,3 @@ export declare type PrepareRequestFunctionOpts = { | ||
localAddress?: string; | ||
dnsLookup?: typeof dns['lookup']; | ||
}; | ||
@@ -44,0 +47,0 @@ declare type Promisable<T> = T | Promise<T>; |
@@ -342,2 +342,3 @@ "use strict"; | ||
handlerOpts.localAddress = funcResult.localAddress; | ||
handlerOpts.dnsLookup = funcResult.dnsLookup; | ||
// If not authenticated, request client to authenticate | ||
@@ -344,0 +345,0 @@ if (funcResult.requestAuthentication) { |
{ | ||
"name": "proxy-chain", | ||
"version": "2.0.1-beta.13", | ||
"version": "2.0.1-beta.14", | ||
"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
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
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
161185
1653