Use homeassistant STUN server (#127922)
This commit is contained in:
parent
d6ee10a543
commit
b56e22d4ee
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"}]}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue