Permalink
Browse files

Added noproxy configuration.

  • Loading branch information...
1 parent 9ab94ea commit 8ccd3025913ac3dd33c48780dd17ace7789aa4c3 @vvision committed Dec 18, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/request.js
View
@@ -172,7 +172,11 @@ function makeRequest (method, remote, where, what, etag, nofollow, tok, cb_) {
var p = this.conf.get('proxy')
var sp = this.conf.get('https-proxy') || p
- opts.proxy = remote.protocol === "https:" ? sp : p
+ var np = this.conf.get('noproxy')
+
+ if(np.search(remote.hostname) === -1) {
+ opts.proxy = remote.protocol === "https:" ? sp : p
+ }
// figure out wth 'what' is
if (what) {

0 comments on commit 8ccd302

Please sign in to comment.