File: 2002_no_default_stun_host.patch

package info (click to toggle)
python-aiortc 1.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,052 kB
  • sloc: python: 20,890; javascript: 321; makefile: 21; sh: 1
file content (27 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
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")],
+            [],
         )