update scripts

This commit is contained in:
Max Lv
2014-03-28 17:07:21 +08:00
parent 2ad32adcb6
commit d14da247dc
6 changed files with 11 additions and 37 deletions
+1 -9
View File
@@ -898,7 +898,6 @@ int main (int argc, char **argv)
int i, c;
int pid_flags = 0;
char *user = NULL;
char *password = NULL;
char *timeout = NULL;
char *method = NULL;
@@ -914,7 +913,7 @@ int main (int argc, char **argv)
opterr = 0;
while ((c = getopt (argc, argv, "f:s:p:l:k:t:m:c:i:d:a:uv")) != -1)
while ((c = getopt (argc, argv, "f:s:p:l:k:t:m:c:i:d:uv")) != -1)
{
switch (c)
{
@@ -947,9 +946,6 @@ int main (int argc, char **argv)
dns_thread_num = atoi(optarg);
if (!dns_thread_num) FATAL("Invalid DNS thread number");
break;
case 'a':
user = optarg;
break;
case 'u':
udprelay = 1;
break;
@@ -1056,10 +1052,6 @@ int main (int argc, char **argv)
udprelay_init(server_host[0], server_port, asyncns, m, listen_ctx.timeout, iface);
}
// setuid
if (user != NULL)
run_as(user);
// start ev loop
ev_run (loop, 0);
return 0;