summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.c7
-rw-r--r--version.m42
2 files changed, 5 insertions, 4 deletions
diff --git a/socket.c b/socket.c
index fecc398..65fbcd7 100644
--- a/socket.c
+++ b/socket.c
@@ -1291,6 +1291,10 @@ link_socket_init_phase1 (struct link_socket *sock,
else if (mode != LS_MODE_TCP_ACCEPT_FROM)
{
create_socket (sock);
+
+ /* set socket buffers based on --sndbuf and --rcvbuf options */
+ socket_set_buffers (sock->sd, &sock->socket_buffer_sizes);
+
resolve_bind_local (sock);
resolve_remote (sock, 1, NULL, NULL);
}
@@ -1493,9 +1497,6 @@ link_socket_init_phase2 (struct link_socket *sock,
}
}
- /* set socket buffers based on --sndbuf and --rcvbuf options */
- socket_set_buffers (sock->sd, &sock->socket_buffer_sizes);
-
/* set misc socket parameters */
socket_set_flags (sock->sd, sock->sockflags);
diff --git a/version.m4 b/version.m4
index 81834e2..826720b 100644
--- a/version.m4
+++ b/version.m4
@@ -1,5 +1,5 @@
dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1.1c])
+define(PRODUCT_VERSION,[2.1.1d])
dnl define the TAP version
define(PRODUCT_TAP_ID,[tap0901])
define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])