# HG changeset patch # User Kim Alvefur # Date 1538255093 -7200 # Node ID 794eda565c694ed17b307dbdc05b9fd5879f57e1 # Parent bcd94cc355d3313f6a71df88887c68adbcf73dc3 net.resolvers.service: Rename internal variable since net.connect uses it for __tostring diff -r bcd94cc355d3 -r 794eda565c69 net/resolvers/service.lua --- 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;