Skip to content

Commit

Permalink
add lookup param for request
Browse files Browse the repository at this point in the history
add lookup param for request
  • Loading branch information
machao authored Jun 27, 2021
1 parent 339c4e6 commit bbcae13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/needle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bbcae13

Please sign in to comment.