config domains

This commit is contained in:
Ming Sun
2018-01-05 13:14:30 +08:00
parent f75abe1b9f
commit 2d87d4d4cb
3 changed files with 12 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module.exports = function (requestUrl, options, data, cb) {
var parsedUrl = url.parse(requestUrl);
if (parsedUrl.hostname) {
options.hostname = parsedUrl.hostname;
options.hostname = config.getDomain(parsedUrl.hostname);
}
if (parsedUrl.port) {