Send unicast replies on the same socket the query was received#952
Conversation
|
I don't think this is going to work since on the non-default case we end up with a socket list like:
|
|
Maybe pass the transport instead |
Codecov Report
@@ Coverage Diff @@
## master #952 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 2428 2433 +5
Branches 401 401
=========================================
+ Hits 2428 2433 +5
Continue to review full report at Codecov.
|
|
Seems to be working well. I'd like to add some more tests though |
d6988c0 to
1c46e23
Compare
|
Received confirmation that this fixes an affected system, looking for additional confirmation. |
When replying to a QU question, we do not know if the sending host is reachable
from all of the sending sockets. We now avoid this problem by replying via
the receiving socket. This was the existing behavior when
InterfaceChoice.Defaultis set.
This change extends the unicast relay behavior to used with
InterfaceChoice.Defaultto apply when
InterfaceChoice.Allor interfaces are explicitly passed wheninstantiating a
Zeroconfinstance.Fixes #951
Reference home-assistant/core#54531
Reference home-assistant/core#54434
Reference home-assistant/core#54487