Fix sni domains all in print config

This commit is contained in:
Vadim Vetrov 2024-12-19 02:22:30 +03:00
parent 5fcb4a8012
commit ed5a669393
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5

4
args.c
View File

@ -800,7 +800,9 @@ static size_t print_config_section(const struct section_config_t *section, char
if (section->tls_enabled) { if (section->tls_enabled) {
print_cnf_buf("--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="); print_cnf_raw("--sni-domains=");
for (struct domains_list *sne = section->sni_domains; sne != NULL; sne = sne->next) { for (struct domains_list *sne = section->sni_domains; sne != NULL; sne = sne->next) {
print_cnf_raw("%s,", sne->domain_name); print_cnf_raw("%s,", sne->domain_name);