From 05003e3e2abb9e6dc302fdb155fc27cf0b51e3a7 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Tue, 5 Jan 2016 17:51:48 +0800 Subject: [PATCH] sproto.attach also need ud --- lualib/sproto.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/sproto.lua b/lualib/sproto.lua index f6338008..3ae114bd 100644 --- a/lualib/sproto.lua +++ b/lualib/sproto.lua @@ -227,10 +227,11 @@ function host:dispatch(...) end function host:attach(sp) - return function(name, args, session) + return function(name, args, session, ud) local proto = queryproto(sp, name) header_tmp.type = proto.tag header_tmp.session = session + header_tmp.ud = ud local header = core.encode(self.__package, header_tmp) if session then