Move TURN config to separate config section

This renames:

turn_username -> turn.username
turn_password -> turn.password
turn_uris -> turn.uris
turn_secret -> turn.secret
turn_ttl -> turn.ttl
This commit is contained in:
Lambda 2024-06-07 09:18:08 +00:00
parent e911518aac
commit 79d5d306cc
2 changed files with 28 additions and 18 deletions

View file

@ -366,23 +366,23 @@ impl Service {
}
pub(crate) fn turn_password(&self) -> &String {
&self.config.turn_password
&self.config.turn.password
}
pub(crate) fn turn_ttl(&self) -> u64 {
self.config.turn_ttl
self.config.turn.ttl
}
pub(crate) fn turn_uris(&self) -> &[String] {
&self.config.turn_uris
&self.config.turn.uris
}
pub(crate) fn turn_username(&self) -> &String {
&self.config.turn_username
&self.config.turn.username
}
pub(crate) fn turn_secret(&self) -> &String {
&self.config.turn_secret
&self.config.turn.secret
}
pub(crate) fn emergency_password(&self) -> &Option<String> {