diff options
author | Kim Alvefur <zash@zash.se> | 2017-09-27 17:34:54 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-09-27 17:34:54 +0200 |
commit | e39c5a5316f64071984acf80699eeb770f76362f (patch) | |
tree | df81b116996382f55a219cc704881fda982ceb6d /net/adns.lua | |
parent | 0e2e10c17d047a57840239eeca05f7b37a121849 (diff) | |
download | prosody-e39c5a5316f64071984acf80699eeb770f76362f.tar.gz prosody-e39c5a5316f64071984acf80699eeb770f76362f.zip |
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
Diffstat (limited to 'net/adns.lua')
-rw-r--r-- | net/adns.lua | 1 |
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 |