aboutsummaryrefslogtreecommitdiff
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
commite8faf554cadccc94db7a34be46810299003aa616 (patch)
tree44168fea459ea7c8400cb2cc1e3d5559d866cec6
parentad728e935089e3945d8506f5c33219c2f5c6ac07 (diff)
downloadprosody-im-server-e8faf554cadccc94db7a34be46810299003aa616.tar
prosody-im-server-e8faf554cadccc94db7a34be46810299003aa616.zip
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
-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