mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
This commit is contained in:
parent
e1a94acbb9
commit
78dd613bca
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ local new_resolver = require "net.dns".resolver;
|
||||||
local log = require "util.logger".init("adns");
|
local log = require "util.logger".init("adns");
|
||||||
|
|
||||||
local coroutine, tostring, pcall = coroutine, tostring, pcall;
|
local coroutine, tostring, pcall = coroutine, tostring, pcall;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
|
||||||
local function dummy_send(sock, data, i, j) return (j-i)+1; end
|
local function dummy_send(sock, data, i, j) return (j-i)+1; end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue