mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 13:13:44 +00:00
update log info
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user