Comparing version 0.0.7 to 0.0.8
@@ -96,12 +96,16 @@ /*! | ||
for (const name of this.ns) { | ||
let host; | ||
if (inet6) { | ||
const host = this.inet6.get(name); | ||
if (host) | ||
auth.add(host, this.port); | ||
} | ||
if (inet6 && this.inet6.has(name)) | ||
host = this.inet6.get(name); | ||
else | ||
host = this.inet4.get(name); | ||
const host = this.inet4.get(name); | ||
auth.add(host, this.port); | ||
if (host) | ||
auth.add(host, this.port); | ||
} | ||
assert(auth.servers.length > 0); | ||
return auth; | ||
@@ -157,5 +161,2 @@ } | ||
assert(this.ns.length > 0); | ||
assert(this.inet4.size > 0 || this.inet6.size > 0); | ||
return this; | ||
@@ -162,0 +163,0 @@ } |
{ | ||
"name": "bns", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "DNS bike-shed", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14637
368545