mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.dns: Close resolv.conf handle when done (fixes #1342)
This commit is contained in:
parent
c422e8f134
commit
94880142e9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue