We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995729d commit 2b472ffCopy full SHA for 2b472ff
1 file changed
lib/W3CValidator.js
@@ -56,10 +56,12 @@ var W3CValidator = function(url, java_home) {
56
}
57
58
// Get proxy
59
- if (process.env.HTTP_PROXY !== undefined) {
60
- this.httpProxy = URL(process.env.HTTP_PROXY);
61
- } else if (process.env.http_proxy !== undefined) {
62
- this.httpProxy = URL(process.env.http_proxy);
+ if (["127.0.0.1", "localhost"].indexOf(this.crawler.host) === -1) {
+ if (process.env.HTTP_PROXY !== undefined) {
+ this.httpProxy = URL(process.env.HTTP_PROXY);
+ } else if (process.env.http_proxy !== undefined) {
63
+ this.httpProxy = URL(process.env.http_proxy);
64
+ }
65
66
67
// Set Crawler proxy
0 commit comments