Browse Source

Refine #954

pull/957/head
Max Lv 8 years ago
parent
commit
2b7c487b09
4 changed files with 10 additions and 0 deletions
  1. 3
      src/local.c
  2. 1
      src/redir.c
  3. 3
      src/server.c
  4. 3
      src/tunnel.c

3
src/local.c

@ -1443,9 +1443,12 @@ main(int argc, char **argv)
if (user != NULL && ! run_as(user)) {
FATAL("failed to switch user");
}
#ifndef __MINGW32__
if (getuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif
// Init connections
cork_dllist_init(&connections);

1
src/redir.c

@ -1024,6 +1024,7 @@ main(int argc, char **argv)
if (user != NULL && ! run_as(user)) {
FATAL("failed to switch user");
}
if (getuid() == 0){
LOGI("You are running this process as the root user!");
}

3
src/server.c

@ -1873,9 +1873,12 @@ main(int argc, char **argv)
if (user != NULL && ! run_as(user)) {
FATAL("failed to switch user");
}
#ifndef __MINGW32__
if (getuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif
// init block list
init_block_list();

3
src/tunnel.c

@ -1031,9 +1031,12 @@ main(int argc, char **argv)
if (user != NULL && ! run_as(user)) {
FATAL("failed to switch user");
}
#ifndef __MINGW32__
if (getuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif
ev_run(loop, 0);

Loading…
Cancel
Save