From 434e8e014cb21b8d15d512b966ea4f397fd0d369 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 21 Apr 2005 03:15:34 +0000 Subject: Better connection handling. --- src/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) \*-------------------------------------------------------------------------*/ static int meth_connect(lua_State *L) { - p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); + p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{any}", 1); const char *address = luaL_checkstring(L, 2); unsigned short port = (unsigned short) luaL_checknumber(L, 3); p_tm tm = tm_markstart(&tcp->tm); -- cgit v1.2.3-55-g6feb