Use homeassistant STUN server (#127922)

This commit is contained in:
Robert Resch 2024-10-08 12:25:20 +02:00 committed by GitHub
parent d6ee10a543
commit b56e22d4ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -402,9 +402,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
)
async def get_ice_server() -> RTCIceServer:
# The following servers will replaced before the next stable release with
# STUN server provided by Home Assistant. Used Google ones for testing purposes.
return RTCIceServer(urls="stun:stun.l.google.com:19302")
return RTCIceServer(urls="stun:stun.home-assistant.io:3478")
register_ice_server(hass, get_ice_server)
return True

View file

@ -210,7 +210,7 @@ async def test_ws_get_client_config(
assert msg["type"] == TYPE_RESULT
assert msg["success"]
assert msg["result"] == {
"configuration": {"iceServers": [{"urls": "stun:stun.l.google.com:19302"}]}
"configuration": {"iceServers": [{"urls": "stun:stun.home-assistant.io:3478"}]}
}