aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-13 18:16:28 +0200
committerKim Alvefur <zash@zash.se>2019-04-13 18:16:28 +0200
commitdadf242556770176ea589426bf97444a550c4553 (patch)
tree57fc10f8a9db0e51c1ff652bda94b51ee47cec49
parentd4c35255c06539fdc928b3b12df61f2ebd09ad64 (diff)
downloadprosody-dadf242556770176ea589426bf97444a550c4553.tar.gz
prosody-dadf242556770176ea589426bf97444a550c4553.zip
net.dns: Close resolv.conf handle when done (fixes #1342)
-rw-r--r--net/dns.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua
index af5f1216..3902f95c 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -704,6 +704,7 @@ function resolver:adddefaultnameservers() -- - - - - adddefaultnameservers
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