From f20863096f02354ca4ffa3dd55b0eb00901624ba Mon Sep 17 00:00:00 2001 From: BlockListed <44610569+BlockListed@users.noreply.github.com> Date: Sat, 9 Sep 2023 14:55:43 +0200 Subject: [PATCH] fix issue in config --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 1f62c22f..791668b1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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