fix nameserver (by removing prefix)
This commit is contained in:
parent
a41b3f8f3f
commit
d225cfa5c6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue