Comparison

util/dns.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parent 12355:a0ff5c438e9d
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
10 local t_insert = table.insert; 10 local t_insert = table.insert;
11 local s_byte = string.byte; 11 local s_byte = string.byte;
12 local s_format = string.format; 12 local s_format = string.format;
13 local s_sub = string.sub; 13 local s_sub = string.sub;
14 14
15 local iana_data = require "util.dnsregistry"; 15 local iana_data = require "prosody.util.dnsregistry";
16 local tohex = require "util.hex".encode; 16 local tohex = require "prosody.util.hex".encode;
17 local inet_ntop = require "util.net".ntop; 17 local inet_ntop = require "prosody.util.net".ntop;
18 18
19 -- Simplified versions of Waqas DNS parsers 19 -- Simplified versions of Waqas DNS parsers
20 -- Only the per RR parsers are needed and only feed a single RR 20 -- Only the per RR parsers are needed and only feed a single RR
21 21
22 local parsers = {}; 22 local parsers = {};