Skip to content

Commit

Permalink
pkg: update deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Mar 14, 2018
1 parent 9ffacc2 commit 9fc8744
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
21 changes: 8 additions & 13 deletions lib/dns/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class RootServer extends DNSServer {
}

async resolve(req, rinfo) {
const edns = req.isEDNS0();
const ds = req.isDNSSEC();
const [qs] = req.question;

Expand Down Expand Up @@ -103,14 +102,12 @@ class RootServer extends DNSServer {

res.authority.push(this.toSOA());

if (edns) {
// We should also be giving an NSEC proof
// here, but I don't think it's possible
// with the current construction.
if (ds) {
dnssec.signMessage(res, '.', key.pub, key.priv);
dnssec.signMessage(res, tld, key.pub, key.priv);
}
// We should also be giving an NSEC proof
// here, but I don't think it's possible
// with the current construction.
if (ds) {
dnssec.signMessage(res, '.', key.pub, key.priv);
dnssec.signMessage(res, tld, key.pub, key.priv);
}

return res;
Expand All @@ -125,10 +122,8 @@ class RootServer extends DNSServer {
res.authority.push(this.toSOA());
}

if (edns) {
if (ds)
dnssec.signMessage(res, tld, key.pub, key.priv);
}
if (ds)
dnssec.signMessage(res, tld, key.pub, key.priv);

return res;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"blgr": "~0.0.2",
"blru": "~0.0.1",
"blst": "~0.0.1",
"bns": "~0.0.2",
"bns": "~0.0.3",
"bmutex": "~0.0.2",
"bn.js": "~4.11.8",
"bs32": "~0.0.1",
Expand Down

0 comments on commit 9fc8744

Please sign in to comment.