Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ssrf #279

Merged
merged 7 commits into from
Mar 26, 2018
Merged

Ssrf #279

merged 7 commits into from
Mar 26, 2018

Conversation

dead-horse
Copy link
Member

No description provided.

@dead-horse dead-horse force-pushed the ssrf branch 2 times, most recently from ca4b308 to f5e86e0 Compare March 24, 2018 14:55
lib/urllib.js Outdated
return done(err);
}
function handleRequestEvents(req) {
if (timing) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的逻辑没有改,只是放到这个方法中了

@dead-horse
Copy link
Member Author

0.10 的测试去掉了,muk 都用不了...

lib/urllib.js Outdated
@@ -243,6 +246,23 @@ exports.requestWithCallback = function requestWithCallback(url, args, callback)
agent = proxyTunnelAgent;
}

var _lookup = args.lookup || dns.lookup;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有设置 args.checkAddress 的时候,能否不要去默认设置 lookup 为 dns.lookup?

lib/urllib.js Outdated
try {
req = httplib.request(options, onResponse);
req.requestId = reqId;
handleRequestEvents(req);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

放到 try catch 外面

@dead-horse
Copy link
Member Author

改掉了,再看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants