fix nameserver (by removing prefix)

This commit is contained in:
AJ ONeal 2017-03-31 00:02:49 -06:00
parent a41b3f8f3f
commit d225cfa5c6
1 changed files with 3 additions and 3 deletions

View File

@ -127,8 +127,8 @@ function request(query, opts) {
}); });
handlers.onError = function (err) { handlers.onError = function (err) {
console.error("error:", err.stack); console.error("error:", err.stack);
server.close(); server.close();
}; };
handlers.onMessage = function (nb) { handlers.onMessage = function (nb) {
var packet = dnsjs.DNSPacket.parse(nb.buffer.slice(nb.byteOffset, nb.byteOffset + nb.byteLength)); var packet = dnsjs.DNSPacket.parse(nb.buffer.slice(nb.byteOffset, nb.byteOffset + nb.byteLength));
@ -271,7 +271,7 @@ cli.main(function (args, cli) {
process.exit(1); process.exit(1);
return; return;
} }
cli.nameserver = cli.n = arg; cli.nameserver = cli.n = arg.substr(1);
return; return;
} }