From c5c2b7036c0024dec390f07672a06e2cb140fd0f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 29 Sep 2018 23:04:53 +0200 Subject: net.resolvers.service: Rename internal variable since net.connect uses it for __tostring --- net/resolvers/service.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net/resolvers/service.lua') 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; -- cgit v1.2.3