function formatDnsLookupUrl(host, url, address) { if (typeof url === 'string') return url.replace(host, address); const urlObj = utility.assign({}, url); urlObj.hostname = urlObj.hostname.replace(host, address); if (urlObj.host) { urlObj.host = urlObj.host.replace(host, address); } return urlObj; }
set locals(val) { if (!this[LOCALS]) { this[LOCALS] = {}; } assign(this[LOCALS], val); }