From 8c251b2bc5ff5fc364643d9dba9c8249f17d73e3 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 12 Feb 2020 15:48:22 +0800 Subject: [PATCH] Fix build --- src/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 29fb7ae2..2e04fd40 100644 --- a/src/server.c +++ b/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;