mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
use socket_channle:changehost, this may also fix #1130
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user