aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
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
commit5a7cfba3ddda58b6638c2ffb478e948bcbb064fa (patch)
tree57fc10f8a9db0e51c1ff652bda94b51ee47cec49 /net/dns.lua
parentfd450216aeeff7c6b6eead732059f7b7326843a0 (diff)
downloadprosody-5a7cfba3ddda58b6638c2ffb478e948bcbb064fa.tar.gz
prosody-5a7cfba3ddda58b6638c2ffb478e948bcbb064fa.zip
net.dns: Close resolv.conf handle when done (fixes #1342)
Diffstat (limited to 'net/dns.lua')
-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