refine the log of TCP only mode

This commit is contained in:
Max Lv
2015-07-06 14:10:46 +08:00
parent a312986239
commit 944e3b2a16
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -768,11 +768,15 @@ int main(int argc, char **argv)
// Setup UDP
if (mode != TCP_ONLY) {
LOGI("udprelay enabled");
LOGI("UDP relay enabled");
init_udprelay(local_addr, local_port, listen_ctx.remote_addr[0],
get_sockaddr_len(listen_ctx.remote_addr[0]), m, listen_ctx.timeout, NULL);
}
if (mode == UDP_ONLY) {
LOGI("TCP relay disabled");
}
LOGI("listening at %s:%s", local_addr, local_port);
// setuid
+5 -1
View File
@@ -1328,7 +1328,11 @@ int main(int argc, char **argv)
}
if (mode != TCP_ONLY) {
LOGI("udprelay enabled");
LOGI("UDP relay enabled");
}
if (mode == UDP_ONLY) {
LOGI("TCP relay disabled");
}
// setuid
+5 -1
View File
@@ -827,12 +827,16 @@ int main(int argc, char **argv)
// Setup UDP
if (mode != TCP_ONLY) {
LOGI("udprelay enabled");
LOGI("UDP relay enabled");
init_udprelay(local_addr, local_port, listen_ctx.remote_addr[0],
get_sockaddr_len(listen_ctx.remote_addr[0]),
tunnel_addr, m, listen_ctx.timeout, iface);
}
if (mode == UDP_ONLY) {
LOGI("TCP relay disabled");
}
LOGI("listening at %s:%s", local_addr, local_port);
// setuid