From 3510840227dc92d9a5d5870dce64777e0517a110 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sat, 9 May 2020 16:00:56 +0200 Subject: [PATCH] disable hardcoded TURN --- shittyserver.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/shittyserver.py b/shittyserver.py index 15834da..29f6d28 100644 --- a/shittyserver.py +++ b/shittyserver.py @@ -67,24 +67,7 @@ def get_turn_credentials() -> TurnCredentials: # noinspection PyTypeChecker return token.ice_servers # type: ignore elif provider == "hardcoded": - return [ - { - "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", - ], - }, - ] + raise Exception("Don't use hardcoded anymore!") else: raise Exception("unknown provider " + provider)