From ed5a66939393f5483a79900ea837f8a276e52513 Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Thu, 19 Dec 2024 02:22:30 +0300 Subject: [PATCH] Fix sni domains all in print config --- args.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/args.c b/args.c index 38c6c70..0486bdf 100644 --- a/args.c +++ b/args.c @@ -800,7 +800,9 @@ static size_t print_config_section(const struct section_config_t *section, char if (section->tls_enabled) { print_cnf_buf("--tls=enabled"); - if (section->sni_domains != NULL) { + if (section->all_domains) { + print_cnf_buf("--sni-domains=all"); + } else if (section->sni_domains != NULL) { print_cnf_raw("--sni-domains="); for (struct domains_list *sne = section->sni_domains; sne != NULL; sne = sne->next) { print_cnf_raw("%s,", sne->domain_name);