Commit 8bb49642 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #86 from thekvs/master

I've just fixed a typo.
parents c30f7a52 3f78df86
...@@ -4386,7 +4386,7 @@ static int set_ports_option(struct mg_context *ctx) { ...@@ -4386,7 +4386,7 @@ static int set_ports_option(struct mg_context *ctx) {
success = 0; success = 0;
} else if ((so.sock = socket(so.lsa.sa.sa_family, SOCK_STREAM, 6)) == } else if ((so.sock = socket(so.lsa.sa.sa_family, SOCK_STREAM, 6)) ==
INVALID_SOCKET || INVALID_SOCKET ||
set_timeout(ctx, sock) || set_timeout(ctx, so.sock) ||
// On Windows, SO_REUSEADDR is recommended only for // On Windows, SO_REUSEADDR is recommended only for
// broadcast UDP sockets // broadcast UDP sockets
setsockopt(so.sock, SOL_SOCKET, SO_REUSEADDR, (const char *) &on, setsockopt(so.sock, SOL_SOCKET, SO_REUSEADDR, (const char *) &on,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment