From a5586f6b2cac1351833dbc629ee06388b5250dce Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 6 Oct 2017 19:13:21 -0600 Subject: [PATCH] allow 0 as valid value --- packer/type.soa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/type.soa.js b/packer/type.soa.js index eccb416..40c86d8 100644 --- a/packer/type.soa.js +++ b/packer/type.soa.js @@ -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) {