Changeset

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
parents 9932:df73ca804719
children 9953:7c71c6eb29a6 9955:c74c89a96cbf
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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