signal-desktop/patches/socks-proxy-agent+8.0.1.patch

23 lines
924 B
Diff
Raw Normal View History

2023-08-29 23:58:48 +00:00
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();