From 10ddae286feb4cafabb07fe5021e8469eca934e5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 31 Dec 2021 12:09:00 +0100 Subject: [PATCH] Parse potential environment variables in ice_servers list --- src/data/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/config.rs b/src/data/config.rs index 7e18bc1..40832db 100644 --- a/src/data/config.rs +++ b/src/data/config.rs @@ -152,7 +152,8 @@ impl Config { enabled: Config::yaml_bool(parsed_rtc, "enabled"), ip: Config::yaml_str(parsed_rtc, "ip"), token: Config::yaml_str(parsed_rtc, "token"), - ice_servers: parsed_rtc["ice-servers"].as_vec().unwrap().iter().map(|f| f.as_str().unwrap().to_string()).collect(), + ice_servers: parsed_rtc["ice-servers"].as_vec().unwrap().iter() + .map(|f| Self::parse_string_val(f.as_str().unwrap().to_string())).collect(), max_users_per_calls: Config::yaml_u64(parsed_rtc, "max-users-per-calls"), allow_video: Config::yaml_bool(parsed_rtc, "allow-video"), max_users_per_video_calls: Config::yaml_u64(parsed_rtc, "max-users-per-video-calls"),