Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add local-address for configuration of localAddress in requests #7

Closed
wants to merge 1 commit into from

2 participants

@bmeck

This should aid in setting up which network interface npm is using to send out requests.

related : npm/npmconf#1

@isaacs
Owner

b0c0e8b thanks

@isaacs isaacs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/request.js
View
1  lib/request.js
@@ -147,6 +147,7 @@ function makeRequest (method, remote, where, what, etag, nofollow, tok, cb_) {
var opts = { url: remote
, method: method
, ca: this.conf.get('ca')
+ , localAddress: this.conf.get('local-address')
, strictSSL: strict }
, headers = opts.headers = {}
if (etag) {
Something went wrong with that request. Please try again.