diff options
author | Kim Alvefur <zash@zash.se> | 2019-04-13 18:16:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-04-13 18:16:28 +0200 |
commit | 6b6dd549e8573d87e431d02237fe9272a09bf2a3 (patch) | |
tree | 57fc10f8a9db0e51c1ff652bda94b51ee47cec49 | |
parent | 396e4d0cc2c5d824c09fd21316fabe755265c6b0 (diff) | |
download | prosody-6b6dd549e8573d87e431d02237fe9272a09bf2a3.tar.gz prosody-6b6dd549e8573d87e431d02237fe9272a09bf2a3.zip |
net.dns: Close resolv.conf handle when done (fixes #1342)
-rw-r--r-- | net/dns.lua | 1 |
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 |