diff --git a/lualib/skynet/harbor.lua b/lualib/skynet/harbor.lua index 5f470be8..a84d94ef 100644 --- a/lualib/skynet/harbor.lua +++ b/lualib/skynet/harbor.lua @@ -4,15 +4,15 @@ local harbor = {} function harbor.globalname(name, handle) handle = handle or skynet.self() - skynet.send(".slave", "lua", "REGISTER", name, handle) + skynet.send(".cslave", "lua", "REGISTER", name, handle) end function harbor.link(id) - skynet.call(".slave", "lua", "LINK", id) + skynet.call(".cslave", "lua", "LINK", id) end function harbor.connect(id) - skynet.call(".slave", "lua", "CONNECT", id) + skynet.call(".cslave", "lua", "CONNECT", id) end return harbor diff --git a/service/bootstrap.lua b/service/bootstrap.lua index 06e67d7e..e1df7170 100644 --- a/service/bootstrap.lua +++ b/service/bootstrap.lua @@ -17,7 +17,7 @@ skynet.start(function() if not ok then skynet.abort() end - skynet.name(".slave", slave) + skynet.name(".cslave", slave) else if standalone then @@ -30,7 +30,7 @@ skynet.start(function() if not ok then skynet.abort() end - skynet.name(".slave", slave) + skynet.name(".cslave", slave) end if standalone then