Mercurial > prosody-hg
diff net/adns.lua @ 8280:9ca0e3128b62
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 27 Sep 2017 17:34:54 +0200 |
| parents | 9a97dd174ec9 |
| children | 4f0f5b49bb03 |
line wrap: on
line diff
--- a/net/adns.lua Wed Sep 27 15:45:07 2017 +0200 +++ b/net/adns.lua Wed Sep 27 17:34:54 2017 +0200 @@ -12,6 +12,7 @@ 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
