Disable Error overrides

This commit is contained in:
Fabian Stamm
2018-05-13 21:59:02 +02:00
parent 57c638316e
commit 68f44878d3
4 changed files with 9 additions and 4 deletions

View File

@ -190,11 +190,13 @@ export class Request implements Message {
this._header = <any>headerParser.parse(headerData);
this._header.AD = 0;
this._header.RCODE = ErrorCodes.NoError;
this._questions = parseQuestions(this._header.QDCOUNT, bodyData);
}
error(error: ErrorCodes) {
this._header.RCODE = error;
if (this._header.RCODE === ErrorCodes.NoError)
this._header.RCODE = error;
}
send() {