1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: use no default stun host (i.e. avoid hardcoded Google service)
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2021-04-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/aiortc/rtcicetransport.py
+++ b/src/aiortc/rtcicetransport.py
@@ -218,7 +218,7 @@
"""
Return the list of default :class:`RTCIceServer`.
"""
- return [RTCIceServer("stun:stun.l.google.com:19302")]
+ return []
def getLocalCandidates(self) -> list[RTCIceCandidate]:
"""
--- a/tests/test_rtcicetransport.py
+++ b/tests/test_rtcicetransport.py
@@ -258,7 +258,7 @@
def test_default_ice_servers(self) -> None:
self.assertEqual(
RTCIceGatherer.getDefaultIceServers(),
- [RTCIceServer(urls="stun:stun.l.google.com:19302")],
+ [],
)
|