use socket_channle:changehost, this may also fix #1130

This commit is contained in:
Cloud Wu
2019-12-04 15:33:01 +08:00
parent b295b875c8
commit 99a7d745fb
2 changed files with 11 additions and 37 deletions

View File

@@ -35,7 +35,7 @@ local function open_channel(t, key)
local host, port = string.match(address, "([^:]+):(.*)$")
c = node_sender[key]
if c == nil then
c = skynet.newservice("clustersender", key, nodename)
c = skynet.newservice("clustersender", key, nodename, host, port)
if node_sender[key] then
-- double check
skynet.kill(c)