mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
error when send to address 0
This commit is contained in:
@@ -172,6 +172,9 @@ _send(lua_State *L) {
|
||||
uint32_t dest = (uint32_t)lua_tointeger(L, 1);
|
||||
const char * dest_string = NULL;
|
||||
if (dest == 0) {
|
||||
if (lua_type(L,1) == LUA_TNUMBER) {
|
||||
return luaL_error(L, "Invalid service address 0");
|
||||
}
|
||||
dest_string = get_dest_string(L, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user