22 lines
924 B
Diff
22 lines
924 B
Diff
diff --git a/node_modules/socks-proxy-agent/dist/index.js b/node_modules/socks-proxy-agent/dist/index.js
|
|
index 8189e01..e2dedf8 100644
|
|
--- a/node_modules/socks-proxy-agent/dist/index.js
|
|
+++ b/node_modules/socks-proxy-agent/dist/index.js
|
|
@@ -33,6 +33,7 @@ const debug_1 = __importDefault(require("debug"));
|
|
const dns = __importStar(require("dns"));
|
|
const net = __importStar(require("net"));
|
|
const tls = __importStar(require("tls"));
|
|
+const { URL } = __importStar(require("url"));
|
|
const debug = (0, debug_1.default)('socks-proxy-agent');
|
|
function parseSocksURL(url) {
|
|
let lookup = false;
|
|
@@ -127,6 +128,9 @@ class SocksProxyAgent extends agent_base_1.Agent {
|
|
},
|
|
command: 'connect',
|
|
timeout: timeout ?? undefined,
|
|
+ socket_options: {
|
|
+ lookup: lookupFn,
|
|
+ },
|
|
};
|
|
const cleanup = (tlsSocket) => {
|
|
req.destroy();
|