aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp.c b/src/tcp.c
index e4b1375..eb84997 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -208,7 +208,7 @@ static int meth_bind(lua_State *L)
208\*-------------------------------------------------------------------------*/ 208\*-------------------------------------------------------------------------*/
209static int meth_connect(lua_State *L) 209static int meth_connect(lua_State *L)
210{ 210{
211 p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); 211 p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{any}", 1);
212 const char *address = luaL_checkstring(L, 2); 212 const char *address = luaL_checkstring(L, 2);
213 unsigned short port = (unsigned short) luaL_checknumber(L, 3); 213 unsigned short port = (unsigned short) luaL_checknumber(L, 3);
214 p_tm tm = tm_markstart(&tcp->tm); 214 p_tm tm = tm_markstart(&tcp->tm);