Skip to content

Commit

Permalink
src/socket.c: reuseaddr can be turned off by default for sockets that…
Browse files Browse the repository at this point in the history
… will connect
  • Loading branch information
daurnimator committed Nov 30, 2015
1 parent 3c554f7 commit 50004f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ static lso_nargs_t lso_connect2(lua_State *L) {
port = luaL_checkstring(L, -1);
}
} else {
opts = *so_opts();
opts = *so_opts(.sin_reuseaddr = 0);
host = luaL_checkstring(L, 1);
port = luaL_checkstring(L, 2);
family = luaL_optinteger(L, 3, AF_INET);
Expand Down

0 comments on commit 50004f3

Please sign in to comment.