fix issue in config

This commit is contained in:
BlockListed 2023-09-09 14:55:43 +02:00
parent 1dfc68ab8a
commit f20863096f
No known key found for this signature in database
GPG Key ID: 2D204777C477B588
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ macro_rules! make_config {
)+)+
config.domain_set = _domain_set;
config.domain_change_back = config.domain_change_back.split(',').map(|d| d.trim_end_matches('/')).fold(String::new(), |acc, d| {
// Remove slash from every domain
config.domain_change_back = config.domain_change_back.split(',').map(|d| d.trim_end_matches('/')).fold(String::new(), |mut acc, d| {
acc.push_str(d);
acc.push(',');
acc