mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
cluster.open returns addr, port
This commit is contained in:
@@ -148,8 +148,8 @@ function command.listen(source, addr, port)
|
||||
local address = assert(node_address[addr], addr .. " is down")
|
||||
addr, port = string.match(address, "([^:]+):(.*)$")
|
||||
end
|
||||
skynet.call(gate, "lua", "open", { address = addr, port = port })
|
||||
skynet.ret(skynet.pack(nil))
|
||||
local addr, port = skynet.call(gate, "lua", "open", { address = addr, port = port })
|
||||
skynet.ret(skynet.pack(addr, port))
|
||||
end
|
||||
|
||||
function command.sender(source, node)
|
||||
|
||||
Reference in New Issue
Block a user