mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 05:19:21 +00:00
Parse potential environment variables in ice_servers list
This commit is contained in:
parent
5da5de1c4d
commit
10ddae286f
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user