mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-21 22:05:56 +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) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user