From 78dd613bca5ba7dd05f7fbdca62216efebb465a6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 27 Sep 2017 17:34:54 +0200 Subject: net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2) --- net/adns.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3