Software /
code /
prosody
Changeset
9395:794eda565c69
net.resolvers.service: Rename internal variable since net.connect uses it for __tostring
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 29 Sep 2018 23:04:53 +0200 |
parents | 9394:bcd94cc355d3 |
children | 9396:f57fc24aa0dd |
files | net/resolvers/service.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/net/resolvers/service.lua Sat Sep 29 22:03:16 2018 +0200 +++ b/net/resolvers/service.lua Sat Sep 29 23:04:53 2018 +0200 @@ -36,7 +36,7 @@ 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 @@ 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;