support reading TURN secret from a file (turn_secret_file)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
73afc1fd8f
commit
e0b2595905
5 changed files with 35 additions and 7 deletions
|
@ -24,7 +24,7 @@ pub(crate) async fn turn_server_route(
|
|||
return Err!(Request(NotFound("Not Found")));
|
||||
}
|
||||
|
||||
let turn_secret = services.globals.turn_secret().clone();
|
||||
let turn_secret = services.globals.turn_secret.clone();
|
||||
|
||||
let (username, password) = if !turn_secret.is_empty() {
|
||||
let expiry = SecondsSinceUnixEpoch::from_system_time(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue