disable hardcoded TURN

This commit is contained in:
Marks Polakovs 2020-05-09 16:00:56 +02:00 committed by GitHub
parent b67479b5f9
commit 3510840227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,24 +67,7 @@ def get_turn_credentials() -> TurnCredentials:
# noinspection PyTypeChecker # noinspection PyTypeChecker
return token.ice_servers # type: ignore return token.ice_servers # type: ignore
elif provider == "hardcoded": elif provider == "hardcoded":
return [ raise Exception("Don't use hardcoded anymore!")
{
"urls": ["stun:eu-turn4.xirsys.com"],
},
{
"username":
"h42bRBHL2GtRTiQRoXN8GCG-PFYMl4Acel6EQ9xINBWdTpoZyBEGyCcJBCtT3iINAAAAAF5_NJptYXJrc3BvbGFrb3Zz",
"credential": "17e834fa-70e7-11ea-a66c-faa4ea02ad5c",
"urls": [
"turn:eu-turn4.xirsys.com:80?transport=udp",
"turn:eu-turn4.xirsys.com:3478?transport=udp",
"turn:eu-turn4.xirsys.com:80?transport=tcp",
"turn:eu-turn4.xirsys.com:3478?transport=tcp",
"turns:eu-turn4.xirsys.com:443?transport=tcp",
"turns:eu-turn4.xirsys.com:5349?transport=tcp",
],
},
]
else: else:
raise Exception("unknown provider " + provider) raise Exception("unknown provider " + provider)