aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dnsregistry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dnsregistry.lua')
-rw-r--r--tools/dnsregistry.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/dnsregistry.lua b/tools/dnsregistry.lua
index 41fb751b..5a258c1a 100644
--- a/tools/dnsregistry.lua
+++ b/tools/dnsregistry.lua
@@ -1,5 +1,8 @@
-- Generate util/dnsregistry.lua from IANA HTTP status code registry
-local xml = require "util.xml";
+if not pcall(require, "prosody.loader") then
+ pcall(require, "loader");
+end
+local xml = require "prosody.util.xml";
local registries = xml.parse(io.read("*a"), { allow_processing_instructions = true });
print("-- Source: https://www.iana.org/assignments/dns-parameters/dns-parameters.xml");