aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/resolvers/basic.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index 7d326c44..438448b2 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -43,7 +43,7 @@ function methods:next(cb)
-- Resolve DNS to target list
local dns_resolver = adns.resolver();
- if self.connector_options.use_ipv4 ~= false then
+ if not self.extra or self.extra.use_ipv4 ~= false then
dns_resolver:lookup(function (answer)
if answer then
for _, record in ipairs(answer) do
@@ -54,7 +54,7 @@ function methods:next(cb)
end, self.hostname, "A", "IN");
end
- if self.connector_options.use_ipv6 ~= false then
+ if not self.extra or self.extra.use_ipv6 ~= false then
dns_resolver:lookup(function (answer)
if answer then
for _, record in ipairs(answer) do