From bbcae13c693764149d0a6b4f19ed34256bf9cc22 Mon Sep 17 00:00:00 2001 From: MaChao Date: Sun, 27 Jun 2021 20:57:16 +0800 Subject: [PATCH] add lookup param for request add lookup param for request --- lib/needle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/needle.js b/lib/needle.js index 7a838062d..67f4dc934 100644 --- a/lib/needle.js +++ b/lib/needle.js @@ -211,7 +211,8 @@ Needle.prototype.setup = function(uri, options) { var config = { http_opts : { - localAddress: get_option('localAddress', undefined) + localAddress: get_option('localAddress', undefined), + lookup: get_option('lookup', undefined) }, // passed later to http.request() directly headers : {}, output : options.output,