From bf4f1b4fec68621365301d6b2f61361319372ff3 Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Sat, 12 Jan 2019 22:51:15 +0800 Subject: [PATCH] config: fix no-auto-reauth wrong value. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 95c594a..5a67f27 100644 --- a/config.c +++ b/config.c @@ -260,7 +260,7 @@ RESULT save_config_file() { conf_parser_add_value("if-impl", get_if_impl()->name); conf_parser_add_value("max-fail", my_itoa(g_prog_config.max_failures, itoa_buf, 10)); conf_parser_add_value("max-retries", my_itoa(g_prog_config.max_retries, itoa_buf, 10)); - conf_parser_add_value("no-auto-reauth", g_prog_config.restart_on_logoff ? "1" : "0"); + conf_parser_add_value("no-auto-reauth", g_prog_config.restart_on_logoff ? "0" : "1"); conf_parser_add_value("wait-after-fail", my_itoa(g_prog_config.wait_after_fail_secs, itoa_buf, 10)); conf_parser_add_value("stage-timeout", my_itoa(g_prog_config.stage_timeout, itoa_buf, 10)); conf_parser_add_value("proxy-lan-iface", g_proxy_config.lan_ifname);