Skip to content

Commit 679dcd6

Browse files
authored
Always use multicasts for service discovery (matter-js#1127)
1 parent 9fbf150 commit 679dcd6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

matter_server/server/device_controller.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
from chip.discovery import DiscoveryType
2525
from chip.exceptions import ChipStackError
2626
from chip.native import PyChipError
27-
from zeroconf import BadTypeInNameException, IPVersion, ServiceStateChange, Zeroconf
27+
from zeroconf import (
28+
BadTypeInNameException,
29+
DNSQuestionType,
30+
IPVersion,
31+
ServiceStateChange,
32+
Zeroconf,
33+
)
2834
from zeroconf.asyncio import AsyncServiceBrowser, AsyncServiceInfo, AsyncZeroconf
2935

3036
from matter_server.common.const import VERBOSE_LOG_LEVEL
@@ -220,6 +226,7 @@ async def start(self) -> None:
220226
self._aiozc.zeroconf,
221227
services,
222228
handlers=[self._on_mdns_service_state_change],
229+
question_type=DNSQuestionType.QM,
223230
)
224231

225232
async def stop(self) -> None:

0 commit comments

Comments
 (0)