aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-09-27 17:34:54 +0200
committerKim Alvefur <zash@zash.se>2017-09-27 17:34:54 +0200
commit78dd613bca5ba7dd05f7fbdca62216efebb465a6 (patch)
treedf81b116996382f55a219cc704881fda982ceb6d /net
parente1a94acbb9d847c10417838ac435e4e81a43ed5d (diff)
downloadprosody-78dd613bca5ba7dd05f7fbdca62216efebb465a6.tar.gz
prosody-78dd613bca5ba7dd05f7fbdca62216efebb465a6.zip
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
Diffstat (limited to 'net')
-rw-r--r--net/adns.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/adns.lua b/net/adns.lua
index f1196a6c..a19cbd59 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -12,6 +12,7 @@ local new_resolver = require "net.dns".resolver;
local log = require "util.logger".init("adns");
local coroutine, tostring, pcall = coroutine, tostring, pcall;
+local setmetatable = setmetatable;
local function dummy_send(sock, data, i, j) return (j-i)+1; end