diff options
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -269,12 +269,12 @@ static int meth_dirty(lua_State *L) { | |||
269 | \*-------------------------------------------------------------------------*/ | 269 | \*-------------------------------------------------------------------------*/ |
270 | static int meth_getpeername(lua_State *L) { | 270 | static int meth_getpeername(lua_State *L) { |
271 | p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{connected}", 1); | 271 | p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{connected}", 1); |
272 | return inet_meth_getpeername(L, &udp->sock); | 272 | return inet_meth_getpeername(L, &udp->sock, udp->family); |
273 | } | 273 | } |
274 | 274 | ||
275 | static int meth_getsockname(lua_State *L) { | 275 | static int meth_getsockname(lua_State *L) { |
276 | p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); | 276 | p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); |
277 | return inet_meth_getsockname(L, &udp->sock); | 277 | return inet_meth_getsockname(L, &udp->sock, udp->family); |
278 | } | 278 | } |
279 | 279 | ||
280 | /*-------------------------------------------------------------------------*\ | 280 | /*-------------------------------------------------------------------------*\ |