mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 06:53:46 +00:00
refine commandline output
This commit is contained in:
+8
-5
@@ -917,12 +917,7 @@ int main(int argc, char **argv)
|
||||
switch (c) {
|
||||
case 0:
|
||||
if (option_index == 0) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
fast_open = 1;
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
} else if (option_index == 1) {
|
||||
LOGD("initialize acl...");
|
||||
acl = !init_acl(optarg);
|
||||
@@ -1042,6 +1037,14 @@ int main(int argc, char **argv)
|
||||
daemonize(pid_path);
|
||||
}
|
||||
|
||||
if (fast_open == 1) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __MINGW32__
|
||||
winsock_init();
|
||||
#else
|
||||
|
||||
+8
-5
@@ -941,12 +941,7 @@ int main(int argc, char **argv)
|
||||
switch (c) {
|
||||
case 0:
|
||||
if (option_index == 0) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
fast_open = 1;
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
@@ -1053,6 +1048,14 @@ int main(int argc, char **argv)
|
||||
daemonize(pid_path);
|
||||
}
|
||||
|
||||
if (fast_open == 1) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
}
|
||||
|
||||
// ignore SIGPIPE
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
|
||||
Reference in New Issue
Block a user