mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 10:13:44 +00:00
refine the log of TCP only mode
This commit is contained in:
+5
-1
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user