Diff

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
line wrap: on
line diff
--- a/net/dns.lua	Thu Mar 28 12:52:55 2019 +0100
+++ b/net/dns.lua	Sat Apr 13 18:16:28 2019 +0200
@@ -704,6 +704,7 @@
 					end
 				end
 			end
+			resolv_conf:close();
 		end
 		if not self.server or #self.server == 0 then
 			-- TODO log warning about no nameservers, adding localhost as the default nameserver