aboutsummaryrefslogtreecommitdiffstats
path: root/net/resolvers/service.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-29 23:04:53 +0200
committerKim Alvefur <zash@zash.se>2018-09-29 23:04:53 +0200
commitc5c2b7036c0024dec390f07672a06e2cb140fd0f (patch)
tree9147f5f06dd38a8681033bffc44210991a4dc4ee /net/resolvers/service.lua
parenta4a7a46a349c76817d45ca0cd7220f312eadac05 (diff)
downloadprosody-c5c2b7036c0024dec390f07672a06e2cb140fd0f.tar.gz
prosody-c5c2b7036c0024dec390f07672a06e2cb140fd0f.zip
net.resolvers.service: Rename internal variable since net.connect uses it for __tostring
Diffstat (limited to 'net/resolvers/service.lua')
-rw-r--r--net/resolvers/service.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index ac6e93da..92c46308 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -36,7 +36,7 @@ function methods:next(cb)
if answer then
if #answer == 0 then
if self.extra and self.extra.default_port then
- table.insert(targets, { self.domain, self.extra.default_port, self.conn_type, self.extra });
+ table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra });
end
ready();
return;
@@ -53,12 +53,12 @@ function methods:next(cb)
end
end
ready();
- end, "_" .. self.service .. "._" .. self.conn_type .. "." .. self.domain, "SRV", "IN");
+ end, "_" .. self.service .. "._" .. self.conn_type .. "." .. self.hostname, "SRV", "IN");
end
-local function new(domain, service, conn_type, extra)
+local function new(hostname, service, conn_type, extra)
return setmetatable({
- domain = domain;
+ hostname = hostname;
service = service;
conn_type = conn_type or "tcp";
extra = extra;