Browse Source

Fix build

pull/2628/head
Max Lv 4 years ago
parent
commit
8c251b2bc5
1 changed files with 2 additions and 1 deletions
  1. 3
      src/server.c

3
src/server.c

@ -57,6 +57,7 @@
#include "plugin.h"
#include "server.h"
#include "winsock.h"
#include "resolv.h"
#ifndef EAGAIN
#define EAGAIN EWOULDBLOCK
@ -531,7 +532,7 @@ connect_to_remote(EV_P_ struct addrinfo *res,
memset(&remote->olap, 0, sizeof(remote->olap));
remote->connect_ex_done = 0;
if (ConnectEx(sockfd, res->ai_addr, res->ai_addrlen,
server->buf->data + server->buf->idx,
server->buf->data + server->buf->idx,
server->buf->len, &s, &remote->olap)) {
remote->connect_ex_done = 1;
break;

Loading…
Cancel
Save