net.dns: Close resolv.conf handle when done (fixes #1342)

This commit is contained in:
Kim Alvefur 2019-04-13 18:16:28 +02:00
parent fd450216ae
commit 5a7cfba3dd

View file

@ -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