update log info

This commit is contained in:
Max Lv
2013-08-31 17:50:09 +08:00
parent 8e6724a1fd
commit 76940df8d1
2 changed files with 4 additions and 7 deletions
-3
View File
@@ -615,9 +615,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 remote: %s", listener->remote_host[index]);
}
int err = getaddrinfo(listener->remote_host[index], listener->remote_port, &hints, &res);
if (err) {
ERROR("getaddrinfo");
+4 -4
View File
@@ -380,6 +380,10 @@ static void remote_recv_cb (EV_P_ ev_io *w, int revents) {
return;
}
if (verbose) {
LOGD("[udp] remote receive a packet");
}
// triger the timer
ev_timer_again(EV_A_ &remote_ctx->watcher);
@@ -400,10 +404,6 @@ static void remote_recv_cb (EV_P_ ev_io *w, int revents) {
goto CLEAN_UP;
}
if (verbose) {
LOGD("[udp] remote receive a packet.");
}
#ifdef UDPRELAY_LOCAL
buf = ss_decrypt_all(BUF_SIZE, buf, &buf_len, server_ctx->method);