diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-11-07 13:04:07 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-11-07 13:09:56 +0200 |
commit | af64e30e538bd8d227432119ab3f54ac8deb03a2 (patch) | |
tree | 5e142e4bbeb24805dbce8b98bf17f3606782a450 | |
parent | 29583de41d70ec5ef37e87fa1ddddc0f7a15539f (diff) | |
download | mailfromd-af64e30e538bd8d227432119ab3f54ac8deb03a2.tar.gz mailfromd-af64e30e538bd8d227432119ab3f54ac8deb03a2.tar.bz2 |
Fix the functionality of the mailfromd --mtasim option
This option must discard the effect of the server.listen statement
This also fixes mtasim -Xauto
* src/main.c (mailfromd_options): Process the --mtasim option immediately.
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -544,25 +544,25 @@ static struct mu_option mailfromd_options[] = { | |||
544 | { "load-dir", 'L', N_("DIR"), MU_OPTION_HIDDEN, | 544 | { "load-dir", 'L', N_("DIR"), MU_OPTION_HIDDEN, |
545 | N_("add DIR to the load path"), | 545 | N_("add DIR to the load path"), |
546 | mu_c_void }, | 546 | mu_c_void }, |
547 | 547 | ||
548 | MU_OPTION_GROUP(N_("General options")), | 548 | MU_OPTION_GROUP(N_("General options")), |
549 | { "include", 'I', N_("DIR"), MU_OPTION_DEFAULT, | 549 | { "include", 'I', N_("DIR"), MU_OPTION_DEFAULT, |
550 | N_("add the directory DIR to the list of directories to be " | 550 | N_("add the directory DIR to the list of directories to be " |
551 | "searched for header files"), | 551 | "searched for header files"), |
552 | mu_c_string, NULL, opt_include_dir }, | 552 | mu_c_string, NULL, opt_include_dir }, |
553 | { "port", 'p', N_("STRING"), MU_OPTION_DEFAULT, | 553 | { "port", 'p', N_("STRING"), MU_OPTION_DEFAULT, |
554 | N_("set communication socket"), | 554 | N_("set communication socket"), |
555 | mu_c_string, NULL, opt_port }, | 555 | mu_c_string, NULL, opt_port }, |
556 | { "mtasim", 0, NULL, MU_OPTION_DEFAULT, | 556 | { "mtasim", 0, NULL, MU_OPTION_IMMEDIATE, |
557 | N_("run in mtasim compatibility mode"), | 557 | N_("run in mtasim compatibility mode"), |
558 | mu_c_string, NULL, opt_mtasim }, | 558 | mu_c_string, NULL, opt_mtasim }, |
559 | { "optimize", 'O', N_("LEVEL"), MU_OPTION_ARG_OPTIONAL, | 559 | { "optimize", 'O', N_("LEVEL"), MU_OPTION_ARG_OPTIONAL, |
560 | N_("set code optimization level"), | 560 | N_("set code optimization level"), |
561 | mu_c_string, NULL, opt_optimize }, | 561 | mu_c_string, NULL, opt_optimize }, |
562 | { "variable", 'v', N_("VAR=VALUE"), MU_OPTION_DEFAULT, | 562 | { "variable", 'v', N_("VAR=VALUE"), MU_OPTION_DEFAULT, |
563 | N_("assign VALUE to VAR"), | 563 | N_("assign VALUE to VAR"), |
564 | mu_c_string, NULL, opt_variable }, | 564 | mu_c_string, NULL, opt_variable }, |
565 | { "relayed-domain-file", 0, N_("FILE"), MU_OPTION_DEFAULT, | 565 | { "relayed-domain-file", 0, N_("FILE"), MU_OPTION_DEFAULT, |
566 | N_("read relayed domains from FILE"), | 566 | N_("read relayed domains from FILE"), |
567 | mu_c_string, NULL, opt_relayed_domain_file }, | 567 | mu_c_string, NULL, opt_relayed_domain_file }, |
568 | { "resolv-conf-file", 0, N_("FILE"), MU_OPTION_DEFAULT, | 568 | { "resolv-conf-file", 0, N_("FILE"), MU_OPTION_DEFAULT, |