Skip to content

Commit

Permalink
use search path from platform when resolving names with resolve*
Browse files Browse the repository at this point in the history
  • Loading branch information
markdrago committed Jan 20, 2015
1 parent 90f9325 commit 363bb12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,18 @@ Resolve.prototype._preStart = function() {
};

Resolve.prototype._shouldContinue = function() {
debug('resolve should continue', this._server_list.length, this._domain);
return this._server_list.length;
debug('resolve should continue', this._server_list.length, this._search_path.length, this._domain);
return this._server_list.length && this._search_path.length;
};

Resolve.prototype._nextQuestion = function() {
debug('resolve next question', this._domain);
this._buildQuestion([this._domain, this._search_path.pop()].join('.'));
};

Resolve.prototype.start = function() {
if (!this._started) {
this._search_path = platform.search_path[0].slice(0);
this._preStart();
}

Expand Down

0 comments on commit 363bb12

Please sign in to comment.