fix: create listener socket with specific IP version by agners · Pull Request #1557 · python-zeroconf/python-zeroconf

@agners

Create listener sockets when using unicast with specific IP version as well, just like in new_respond_socket().

@codspeed-hq

@codecov

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.79%. Comparing base (54eb383) to head (f16a922).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1557   +/-   ##
=======================================
  Coverage   99.79%   99.79%           
=======================================
  Files          33       33           
  Lines        3392     3393    +1     
  Branches      463      463           
=======================================
+ Hits         3385     3386    +1     
  Misses          5        5           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bdraco bdraco changed the title Create listener socket with specific IP version fix: create listener socket with specific IP version

Apr 1, 2025

@bdraco

can you add a test (only if IPv6 is available.. there is a fixture already) that creates and IPv4 and IPv6 one with unicast?

Create listener sockets when using unicast with specific IP version
as well, just like in `new_respond_socket()`.

@agners

bdraco

@bdraco