mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Use homeassistant STUN server (#127922)
This commit is contained in:
parent
d6ee10a543
commit
b56e22d4ee
@ -402,9 +402,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def get_ice_server() -> RTCIceServer:
|
async def get_ice_server() -> RTCIceServer:
|
||||||
# The following servers will replaced before the next stable release with
|
return RTCIceServer(urls="stun:stun.home-assistant.io:3478")
|
||||||
# STUN server provided by Home Assistant. Used Google ones for testing purposes.
|
|
||||||
return RTCIceServer(urls="stun:stun.l.google.com:19302")
|
|
||||||
|
|
||||||
register_ice_server(hass, get_ice_server)
|
register_ice_server(hass, get_ice_server)
|
||||||
return True
|
return True
|
||||||
|
@ -210,7 +210,7 @@ async def test_ws_get_client_config(
|
|||||||
assert msg["type"] == TYPE_RESULT
|
assert msg["type"] == TYPE_RESULT
|
||||||
assert msg["success"]
|
assert msg["success"]
|
||||||
assert msg["result"] == {
|
assert msg["result"] == {
|
||||||
"configuration": {"iceServers": [{"urls": "stun:stun.l.google.com:19302"}]}
|
"configuration": {"iceServers": [{"urls": "stun:stun.home-assistant.io:3478"}]}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user