mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
fix build error
This commit is contained in:
@@ -619,10 +619,6 @@ static void accept_cb (EV_P_ ev_io *w, int revents)
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
int index = rand() % listener->remote_num;
|
||||
if (verbose)
|
||||
{
|
||||
LOGD("connect to %s:%s", listener->remote_addr[index].host, listener->remote_addr[index].port);
|
||||
}
|
||||
err = getaddrinfo(listener->remote_addr[index].host, listener->remote_addr[index].port, &hints, &res);
|
||||
if (err)
|
||||
{
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
struct listen_ctx
|
||||
{
|
||||
ev_io io;
|
||||
remote_addr_t *remote_host;
|
||||
remote_addr_t *remote_addr;
|
||||
int remote_num;
|
||||
int timeout;
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user