Browse Source

add more info in verbose mode

pull/11/head
Max Lv 12 years ago
parent
commit
db49089597
2 changed files with 4 additions and 1 deletions
  1. 3
      src/local.c
  2. 2
      src/server.c

3
src/local.c

@ -582,6 +582,9 @@ static void accept_cb (EV_P_ ev_io *w, int revents) {
hints.ai_family = AF_UNSPEC; hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;
int index = clock() % listener->remote_num; int index = clock() % 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); int err = getaddrinfo(listener->remote_host[index], listener->remote_port, &hints, &res);
if (err) { if (err) {
ERROR("getaddrinfo"); ERROR("getaddrinfo");

2
src/server.c

@ -823,7 +823,7 @@ int main (int argc, char **argv) {
} }
// Setup keys // Setup keys
LOGD("calculating ciphers...");
LOGD("initialize cihpers... %s", method);
int m = enc_init(password, method); int m = enc_init(password, method);
// Inilitialize ev loop // Inilitialize ev loop

Loading…
Cancel
Save