Comparison

net/adns.lua @ 6287:a380b09649e6

net.adns: Add missing local declaration
author Kim Alvefur <zash@zash.se>
date Wed, 25 Jun 2014 15:33:49 +0200
parent 5730:411e9e7d8035
child 6289:a29cc79295e6
child 6506:f869eec511c8
comparison
equal deleted inserted replaced
6280:ce1a20bd2053 6287:a380b09649e6
50 50
51 function new_async_socket(sock, resolver) 51 function new_async_socket(sock, resolver)
52 local peername = "<unknown>"; 52 local peername = "<unknown>";
53 local listener = {}; 53 local listener = {};
54 local handler = {}; 54 local handler = {};
55 local err;
55 function listener.onincoming(conn, data) 56 function listener.onincoming(conn, data)
56 if data then 57 if data then
57 dns.feed(handler, data); 58 dns.feed(handler, data);
58 end 59 end
59 end 60 end