Comparison

net/dns.lua @ 9952:6402bc76f51a 0.11

net.dns: Close resolv.conf handle when done (fixes #1342)
author Kim Alvefur <zash@zash.se>
date Sat, 13 Apr 2019 18:16:28 +0200
parent 8909:dbb5ec6885fe
child 10664:c2b79b44ded7
comparison
equal deleted inserted replaced
9932:df73ca804719 9952:6402bc76f51a
702 if ip then 702 if ip then
703 self:addnameserver(ip.addr); 703 self:addnameserver(ip.addr);
704 end 704 end
705 end 705 end
706 end 706 end
707 resolv_conf:close();
707 end 708 end
708 if not self.server or #self.server == 0 then 709 if not self.server or #self.server == 0 then
709 -- TODO log warning about no nameservers, adding localhost as the default nameserver 710 -- TODO log warning about no nameservers, adding localhost as the default nameserver
710 self:addnameserver("127.0.0.1"); 711 self:addnameserver("127.0.0.1");
711 end 712 end