add server port in log file

This commit is contained in:
Gyt
2018-11-26 21:16:25 +08:00
parent 2e7d7a60c4
commit 84b157e866
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -927,9 +927,9 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
if (verbose) {
if ((atyp & ADDRTYPE_MASK) == 4)
LOGI("connect to [%s]:%d", host, ntohs(port));
LOGI("[%s] connect to [%s]:%d", remote_port, host, ntohs(port));
else
LOGI("connect to %s:%d", host, ntohs(port));
LOGI("[%s] connect to %s:%d", remote_port, host, ntohs(port));
}
if (!need_query) {