Merge both stun server into one as it's the same server only on a different port (#130019)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>pull/127409/head
parent
2b7d593ebe
commit
d1dab83f10
|
@ -421,8 +421,12 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
if hass.config.webrtc.ice_servers:
|
||||
return hass.config.webrtc.ice_servers
|
||||
return [
|
||||
RTCIceServer(urls="stun:stun.home-assistant.io:80"),
|
||||
RTCIceServer(urls="stun:stun.home-assistant.io:3478"),
|
||||
RTCIceServer(
|
||||
urls=[
|
||||
"stun:stun.home-assistant.io:80",
|
||||
"stun:stun.home-assistant.io:3478",
|
||||
]
|
||||
),
|
||||
]
|
||||
|
||||
async_register_ice_servers(hass, get_ice_servers)
|
||||
|
|
|
@ -296,8 +296,12 @@ async def test_ws_get_client_config(
|
|||
assert msg["result"] == {
|
||||
"configuration": {
|
||||
"iceServers": [
|
||||
{"urls": "stun:stun.home-assistant.io:80"},
|
||||
{"urls": "stun:stun.home-assistant.io:3478"},
|
||||
{
|
||||
"urls": [
|
||||
"stun:stun.home-assistant.io:80",
|
||||
"stun:stun.home-assistant.io:3478",
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
"getCandidatesUpfront": False,
|
||||
|
@ -326,8 +330,12 @@ async def test_ws_get_client_config(
|
|||
assert msg["result"] == {
|
||||
"configuration": {
|
||||
"iceServers": [
|
||||
{"urls": "stun:stun.home-assistant.io:80"},
|
||||
{"urls": "stun:stun.home-assistant.io:3478"},
|
||||
{
|
||||
"urls": [
|
||||
"stun:stun.home-assistant.io:80",
|
||||
"stun:stun.home-assistant.io:3478",
|
||||
]
|
||||
},
|
||||
{
|
||||
"urls": ["stun:example2.com", "turn:example2.com"],
|
||||
"username": "user",
|
||||
|
|
Loading…
Reference in New Issue