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
commit94880142e9db842117f1836cd53522d9c2258cab (patch)
tree57fc10f8a9db0e51c1ff652bda94b51ee47cec49 /net/dns.lua
parentc422e8f13401e50cb13384227f97df3ad55605fd (diff)
downloadprosody-94880142e9db842117f1836cd53522d9c2258cab.tar.gz
prosody-94880142e9db842117f1836cd53522d9c2258cab.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