Comparison

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
parent 8266:9a97dd174ec9
child 8555:4f0f5b49bb03
comparison
equal deleted inserted replaced
8279:92cddfe65003 8280:9ca0e3128b62
10 local new_resolver = require "net.dns".resolver; 10 local new_resolver = require "net.dns".resolver;
11 11
12 local log = require "util.logger".init("adns"); 12 local log = require "util.logger".init("adns");
13 13
14 local coroutine, tostring, pcall = coroutine, tostring, pcall; 14 local coroutine, tostring, pcall = coroutine, tostring, pcall;
15 local setmetatable = setmetatable;
15 16
16 local function dummy_send(sock, data, i, j) return (j-i)+1; end 17 local function dummy_send(sock, data, i, j) return (j-i)+1; end
17 18
18 local _ENV = nil; 19 local _ENV = nil;
19 20