From de77751779c0a806d546e31b6f0d1f2f419d308a Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Tue, 22 Oct 2024 15:23:29 +0300 Subject: [PATCH] Change Stun server port to 80 (#128879) --- homeassistant/components/camera/__init__.py | 2 +- tests/components/camera/test_webrtc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index e943210fcd8..0fab313c955 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -402,7 +402,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ) async def get_ice_server() -> RTCIceServer: - return RTCIceServer(urls="stun:stun.home-assistant.io:3478") + return RTCIceServer(urls="stun:stun.home-assistant.io:80") register_ice_server(hass, get_ice_server) return True diff --git a/tests/components/camera/test_webrtc.py b/tests/components/camera/test_webrtc.py index 406c48ab203..f92d7fbdacb 100644 --- a/tests/components/camera/test_webrtc.py +++ b/tests/components/camera/test_webrtc.py @@ -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.home-assistant.io:3478"}]} + "configuration": {"iceServers": [{"urls": "stun:stun.home-assistant.io:80"}]} }