Browse Source

fix build error

pull/23/head
Max Lv 11 years ago
parent
commit
183f021628
2 changed files with 1 additions and 5 deletions
  1. 4
      src/redir.c
  2. 2
      src/redir.h

4
src/redir.c

@ -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)
{

2
src/redir.h

@ -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;

Loading…
Cancel
Save