net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
authorKim Alvefur <zash@zash.se>
Wed, 27 Sep 2017 17:34:54 +0200
changeset 8283 9ca0e3128b62
parent 8282 92cddfe65003
child 8284 6bfaa43bea3c
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
net/adns.lua
--- 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