diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -208,7 +208,7 @@ static int meth_bind(lua_State *L) | |||
208 | \*-------------------------------------------------------------------------*/ | 208 | \*-------------------------------------------------------------------------*/ |
209 | static int meth_connect(lua_State *L) | 209 | static 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); |