1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Parse potential environment variables in ice_servers list

This commit is contained in:
Pierre HUBERT 2021-12-31 12:09:00 +01:00
parent 5da5de1c4d
commit 10ddae286f

View File

@ -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"),