allow 0 as valid value

This commit is contained in:
AJ ONeal 2017-10-06 19:13:21 -06:00
parent b0e8f1f55b
commit a5586f6b2c
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
exports.DNS_PACKER_TYPE_SOA = function (ab, dv, total, record) {
function notNumber(n) {
return 'number' === typeof n && !isNaN(n);
return 'number' !== typeof n || isNaN(n);
}
if (!record.primary && !record.name_server) {