|
|
@ -1629,6 +1629,11 @@ main(int argc, char **argv) |
|
|
|
ev_signal_init(&sigchld_watcher, signal_cb, SIGCHLD); |
|
|
|
ev_signal_start(EV_DEFAULT, &sigchld_watcher); |
|
|
|
|
|
|
|
if (strcmp(local_addr, ":") > 0) |
|
|
|
LOGI("listening at [%s]:%s", local_addr, local_port); |
|
|
|
else |
|
|
|
LOGI("listening at %s:%s", local_addr, local_port); |
|
|
|
|
|
|
|
struct ev_loop *loop = EV_DEFAULT; |
|
|
|
|
|
|
|
if (mode != UDP_ONLY) { |
|
|
@ -1674,11 +1679,6 @@ main(int argc, char **argv) |
|
|
|
else |
|
|
|
#endif |
|
|
|
|
|
|
|
if (strcmp(local_addr, ":") > 0) |
|
|
|
LOGI("listening at [%s]:%s", local_addr, local_port); |
|
|
|
else |
|
|
|
LOGI("listening at %s:%s", local_addr, local_port); |
|
|
|
|
|
|
|
// setuid |
|
|
|
if (user != NULL && !run_as(user)) { |
|
|
|
FATAL("failed to switch user"); |
|
|
@ -1795,6 +1795,11 @@ _start_ss_local_server(profile_t profile, ss_local_callback callback, void *udat |
|
|
|
listen_ctx.iface = NULL; |
|
|
|
listen_ctx.mptcp = mptcp; |
|
|
|
|
|
|
|
if (strcmp(local_addr, ":") > 0) |
|
|
|
LOGI("listening at [%s]:%s", local_addr, local_port_str); |
|
|
|
else |
|
|
|
LOGI("listening at %s:%s", local_addr, local_port_str); |
|
|
|
|
|
|
|
if (mode != UDP_ONLY) { |
|
|
|
// Setup socket |
|
|
|
int listenfd; |
|
|
@ -1823,11 +1828,6 @@ _start_ss_local_server(profile_t profile, ss_local_callback callback, void *udat |
|
|
|
get_sockaddr_len(addr), mtu, crypto, timeout, NULL); |
|
|
|
} |
|
|
|
|
|
|
|
if (strcmp(local_addr, ":") > 0) |
|
|
|
LOGI("listening at [%s]:%s", local_addr, local_port_str); |
|
|
|
else |
|
|
|
LOGI("listening at %s:%s", local_addr, local_port_str); |
|
|
|
|
|
|
|
// Init connections |
|
|
|
cork_dllist_init(&connections); |
|
|
|
|
|
|
|