We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e9df9 commit af92f6bCopy full SHA for af92f6b
1 file changed
src/zeroconf/_protocol/outgoing.py
@@ -277,7 +277,7 @@ def write_name(self, name: str_) -> None:
277
start_size = self.size
278
for count in range(len(labels)):
279
label = name if count == 0 else '.'.join(labels[count:])
280
- index = self.names.get(label)
+ index = self.names.get(label, 0)
281
if index:
282
# If part of the name already exists in the packet,
283
# create a pointer to it
0 commit comments