This commit is contained in:
Cloud Wu
2020-02-14 16:08:51 +08:00
committed by 云风
parent 409646a240
commit ac38fd620b

View File

@@ -81,11 +81,12 @@ local function dispatch_request(_,_,addr, session, msg, sz, padding, is_push)
local addr = register_name["@" .. name]
if addr then
ok = true
msg, sz = skynet.pack(addr)
msg = skynet.packstring(addr)
else
ok = false
msg = "name not found"
end
sz = nil
else
if cluster.isname(addr) then
addr = register_name[addr]