diff options
| author | Diego Nehab <diego@impa.br> | 2013-05-26 21:26:26 +0800 |
|---|---|---|
| committer | Diego Nehab <diego@impa.br> | 2013-05-26 21:26:26 +0800 |
| commit | 427220c7b177cdae2379ac419d975c69764ba8ee (patch) | |
| tree | b2690db3cb9cde4505ad51eaac83d3fe4a854ff5 /src/udp.c | |
| parent | 6d93fd7c8f04fecbcdc28994da8b8357f712463f (diff) | |
| download | luasocket-427220c7b177cdae2379ac419d975c69764ba8ee.tar.gz luasocket-427220c7b177cdae2379ac419d975c69764ba8ee.tar.bz2 luasocket-427220c7b177cdae2379ac419d975c69764ba8ee.zip | |
Merge tryconnect6 into inet_tryconnect.
Diffstat (limited to 'src/udp.c')
| -rw-r--r-- | src/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -376,7 +376,8 @@ static int meth_setpeername(lua_State *L) { | |||
| 376 | /* make sure we try to connect only to the same family */ | 376 | /* make sure we try to connect only to the same family */ |
| 377 | connecthints.ai_family = udp->family; | 377 | connecthints.ai_family = udp->family; |
| 378 | if (connecting) { | 378 | if (connecting) { |
| 379 | err = inet_tryconnect(&udp->sock, address, port, tm, &connecthints); | 379 | err = inet_tryconnect(&udp->sock, &udp->family, address, |
| 380 | port, tm, &connecthints); | ||
| 380 | if (err) { | 381 | if (err) { |
| 381 | lua_pushnil(L); | 382 | lua_pushnil(L); |
| 382 | lua_pushstring(L, err); | 383 | lua_pushstring(L, err); |
