|
|
@ -28,13 +28,13 @@ exports.DNS_RDATA_PACK = function (ab, dv, total, record) { |
|
|
|
|
|
|
|
try { |
|
|
|
packer = exports['DNS_PACKER_TYPE_' + typeName] |
|
|
|
|| require('./dns.packer.type.' + typeName.toLowerCase())['DNS_PACKER_TYPE_' + typeName]; |
|
|
|
|| require('./packer/type.' + typeName.toLowerCase())['DNS_PACKER_TYPE_' + typeName]; |
|
|
|
} |
|
|
|
catch (e) { /*console.error(e)*/ } |
|
|
|
|
|
|
|
if (!packer) { |
|
|
|
throw new Error("Packer for DNS Type " + typeName + " could not be loaded." |
|
|
|
+ " Did you include <script src=\"dns.packer.type." + typeName.toLowerCase() + ".js\"></script> ?" |
|
|
|
+ " Did you include <script src=\"packer/type." + typeName.toLowerCase() + ".js\"></script> ?" |
|
|
|
+ " (or perhaps we plan to implement it and haven't yet - in which case please open an issue)" |
|
|
|
); |
|
|
|
} |
|
|
|