diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-29 23:04:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-29 23:04:53 +0200 |
commit | bb9b344fee9d80dcb032712a6f89b94b94ad6284 (patch) | |
tree | 9147f5f06dd38a8681033bffc44210991a4dc4ee /net/resolvers | |
parent | 6dfb01673a236614ecf3de1f4bc2c9611b9d9606 (diff) | |
download | prosody-bb9b344fee9d80dcb032712a6f89b94b94ad6284.tar.gz prosody-bb9b344fee9d80dcb032712a6f89b94b94ad6284.zip |
net.resolvers.service: Rename internal variable since net.connect uses it for __tostring
Diffstat (limited to 'net/resolvers')
-rw-r--r-- | net/resolvers/service.lua | 8 |
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; |