mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 14:26:11 +00:00
Fix sni domains all in print config
This commit is contained in:
parent
5fcb4a8012
commit
ed5a669393
4
args.c
4
args.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user