Skip to content

Commit

Permalink
Select OTA Provider port randomly
Browse files Browse the repository at this point in the history
Instead of using a fixed port for OTA Provider, pass 0 to let the
Matter SDK/bind() syscall select a random port. This allows multiple
OTA Providers to run on the same host without port conflicts.

Fixes: home-assistant/core#125130
  • Loading branch information
agners committed Sep 12, 2024
1 parent f29cc35 commit b313ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matter_server/server/ota/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def start_update(
"--discriminator",
str(ota_provider_discriminator),
"--secured-device-port",
"5540",
"0",
"--KVS",
str(self._ota_provider_dir / f"chip_kvs_ota_provider_{timestamp}"),
"--filepath",
Expand Down

0 comments on commit b313ed9

Please sign in to comment.