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) {
|
||||
console.error("error:", err.stack);
|
||||
server.close();
|
||||
console.error("error:", err.stack);
|
||||
server.close();
|
||||
};
|
||||
handlers.onMessage = function (nb) {
|
||||
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);
|
||||
return;
|
||||
}
|
||||
cli.nameserver = cli.n = arg;
|
||||
cli.nameserver = cli.n = arg.substr(1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue