mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:54:52 -04:00
Added username and password for turn server
It makes it possible to use a turn server that needs a username and password instead of a token.
This commit is contained in:
parent
841c228533
commit
1e38be3a7a
2 changed files with 21 additions and 11 deletions
|
@ -19,7 +19,9 @@ class VoipConfig(Config):
|
|||
|
||||
def read_config(self, config):
|
||||
self.turn_uris = config.get("turn_uris", [])
|
||||
self.turn_shared_secret = config["turn_shared_secret"]
|
||||
self.turn_shared_secret = config.get("turn_shared_secret")
|
||||
self.turn_username = config.get("turn_username")
|
||||
self.turn_password = config.get("turn_password")
|
||||
self.turn_user_lifetime = self.parse_duration(config["turn_user_lifetime"])
|
||||
|
||||
def default_config(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue